Skip to content

Commit

Permalink
!47 fix issues when multiple rules mix in a httproute.
Browse files Browse the repository at this point in the history
Merge pull request !47 from zongzw/zong-fix-mix-hrs
  • Loading branch information
zongzw authored and gitee-org committed Dec 23, 2022
2 parents 405b35f + cacc4bb commit c152ca9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ func parseiRulesFrom(className string, hr *gatewayv1beta1.HTTPRoute, rlt map[str
`, ruleCondition, filterAction, fmt.Sprintf(`
set pool $static::pools_%s([expr {int(rand()*$static::pools_%s_size)}])
pool $pool
return
`, namedi, namedi)))

ruleInits = append(ruleInits, ruleInit)
Expand Down

0 comments on commit c152ca9

Please sign in to comment.