Skip to content

Commit 8fb521f

Browse files
committed
MINOR: add hostname matching when host names route are empty
1 parent fba8139 commit 8fb521f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

k8s/gate/tree/HTTPRoute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ func matchHostname(routeHostnames []gatewayv1.Hostname, listenerHostname *gatewa
384384
return true
385385
}
386386
}
387-
return false
387+
return len(routeHostnames) == 0
388388
}
389389

390390
// match performs the actual hostname matching between a route and a listener hostname.

0 commit comments

Comments
 (0)