Skip to content

Commit 3303086

Browse files
committed
small fix
1 parent 144b68c commit 3303086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/dag/httpproxy_processor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1013,7 +1013,7 @@ func (p *HTTPProxyProcessor) computeRoutes(
10131013
MaxRequestsPerConnection: p.MaxRequestsPerConnection,
10141014
PerConnectionBufferLimitBytes: p.PerConnectionBufferLimitBytes,
10151015
}
1016-
if service.Mirror && len(r.MirrorPolicies) != 0 {
1016+
if service.Mirror && len(r.MirrorPolicies) > 0 {
10171017
validCond.AddError(contour_api_v1.ConditionTypeServiceError, "OnlyOneMirror",
10181018
"only one service per route may be nominated as mirror")
10191019
return nil

0 commit comments

Comments
 (0)