Skip to content

Commit 59e65c9

Browse files
ronethingCopilot
andauthored
Update internal/provider/adc/translator/ingress.go
Co-authored-by: Copilot <[email protected]>
1 parent 31a5dca commit 59e65c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/provider/adc/translator/ingress.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func (t *Translator) translateEndpointSliceForIngress(weight int, endpointSlices
200200
for _, endpointSlice := range endpointSlices {
201201
for _, port := range endpointSlice.Ports {
202202
// if the port number is specified, only use the matching port
203-
if servicePort != nil && *port.Name != servicePort.Name {
203+
if servicePort != nil && port.Name != nil && *port.Name != servicePort.Name {
204204
continue
205205
}
206206
for _, endpoint := range endpointSlice.Endpoints {

0 commit comments

Comments
 (0)