From 6b5d3cb99825ac6ab7c5a4013aeaa0a374ea8ee7 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Tue, 15 Oct 2024 21:16:02 +0800 Subject: [PATCH] fix: Notify and warn message fail --- pkg/proxy/parser.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/proxy/parser.go b/pkg/proxy/parser.go index 3bf30390..f4e20121 100644 --- a/pkg/proxy/parser.go +++ b/pkg/proxy/parser.go @@ -369,8 +369,7 @@ func (p *Parser) parseInputState(b []byte) []byte { p.setCurrentCmdFilterRule(rule) p.setCurrentCmdStatusLevel(model.WarningLevel) logger.Debugf("Session %s: command %s match notify and warn rule", p.id, p.command) - confirmMsg := fmt.Sprintf(confirmWaitMsg, stripNewLine(p.confirmStatus.Cmd)) - p.srvOutputChan <- []byte("\r\n" + confirmMsg) + p.srvOutputChan <- []byte("\r\n" + WarnWaitMsg) return nil default: }