Skip to content

Commit e9f451d

Browse files
committed
small fix
Signed-off-by: Lior Lieberman <[email protected]>
1 parent 144b68c commit e9f451d

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)