Skip to content

Commit 9677843

Browse files
committed
make port nil when nil
1 parent e457fc9 commit 9677843

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/controller/state/graph/route_common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ func buildSectionNameRefs(
317317
Idx: i,
318318
Gateway: CreateParentRefGateway(gw),
319319
SectionName: nil, // Keep as nil to preserve port-only semantics
320-
Port: nil,
320+
Port: p.Port,
321321
})
322322
} else {
323323
// If no port and no sectionName, expand to all listeners
@@ -335,7 +335,7 @@ func buildSectionNameRefs(
335335
Idx: i,
336336
Gateway: CreateParentRefGateway(gw),
337337
SectionName: &l.Source.Name,
338-
Port: p.Port,
338+
Port: nil,
339339
})
340340
}
341341
}

0 commit comments

Comments
 (0)