Skip to content

Commit 83aad83

Browse files
author
ekarlso
committed
Remove the conditional on ipv6 kubernetes-sigs#2396
Signed-off-by: ekarlso <[email protected]>
1 parent ed46a47 commit 83aad83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/services/govmomi/ipam/parse.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ func parseAddressWithPrefix(ipamAddress *ipamv1.IPAddress) (netip.Prefix, error)
5454
// family must match the other addresses of the same family. IPv4 Gateways are
5555
// required, but IPv6 gateways are not.
5656
func parseGateway(ipamAddress *ipamv1.IPAddress, addressWithPrefix netip.Prefix, ipamDeviceConfig ipamDeviceConfig) (*netip.Addr, error) {
57-
if ipamAddress.Spec.Gateway == "" && addressWithPrefix.Addr().Is6() {
57+
if ipamAddress.Spec.Gateway == "" {
5858
return nil, nil
5959
}
6060

0 commit comments

Comments
 (0)