Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Commit c152ca9

Browse files
zongzwgitee-org
authored andcommitted
!47 fix issues when multiple rules mix in a httproute.
Merge pull request !47 from zongzw/zong-fix-mix-hrs
2 parents 405b35f + cacc4bb commit c152ca9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/parser.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,7 @@ func parseiRulesFrom(className string, hr *gatewayv1beta1.HTTPRoute, rlt map[str
462462
`, ruleCondition, filterAction, fmt.Sprintf(`
463463
set pool $static::pools_%s([expr {int(rand()*$static::pools_%s_size)}])
464464
pool $pool
465+
return
465466
`, namedi, namedi)))
466467

467468
ruleInits = append(ruleInits, ruleInit)

0 commit comments

Comments
 (0)