Skip to content

Commit

Permalink
fix: Notify and warn message fail
Browse files Browse the repository at this point in the history
  • Loading branch information
feng626 committed Oct 15, 2024
1 parent 1d59810 commit 24fd8ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/proxy/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
}
Expand Down

0 comments on commit 24fd8ea

Please sign in to comment.