Skip to content

Commit

Permalink
perf: fix command parser
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeEirc committed Oct 23, 2024
1 parent 9d29a23 commit 95f9594
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/proxy/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ func (p *Parser) parseInputState(b []byte) []byte {
if p.command == "" {
p.command = strings.TrimSpace(p.readInputBuffer())
}
p.clearInputBuffer()
if rule, cmd, ok := p.IsMatchCommandRule(p.command); ok {
switch rule.Acl.Action {
case model.ActionReject:
Expand Down

0 comments on commit 95f9594

Please sign in to comment.