Skip to content

Commit 28561ae

Browse files
committed
change apipa endpoint gateway back to .1
1 parent 7d60962 commit 28561ae

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cns/hnsclient/hnsclient_windows.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ func createHostNCApipaNetwork(
316316
hostNCLoopbackAdapterName,
317317
ipconfig,
318318
false, /* Flag to setWeakHostOnInterface */
319-
"" /* Empty primary Interface Identifier as setWeakHostOnInterface is not needed*/); err != nil {
319+
"" /* Empty primary Interface Identifier as setWeakHostOnInterface is not needed*/); err != nil {
320320
return nil, fmt.Errorf("Failed to create loopback adapter. Error: %v", err)
321321
}
322322

@@ -507,7 +507,6 @@ func configureHostNCApipaEndpoint(
507507
}
508508

509509
networkContainerApipaIP := localIPConfiguration.IPSubnet.IPAddress
510-
hostApipaIP := localIPConfiguration.GatewayIPAddress
511510
protocolList := []string{protocolICMPv4, protocolTCP, protocolUDP}
512511

513512
endpointPolicies, err := configureAclSettingHostNCApipaEndpoint(
@@ -527,7 +526,7 @@ func configureHostNCApipaEndpoint(
527526
}
528527

529528
hcnRoute := hcn.Route{
530-
NextHop: hostApipaIP,
529+
NextHop: hnsLoopbackAdapterIPAddress,
531530
DestinationPrefix: "0.0.0.0/0",
532531
}
533532

0 commit comments

Comments
 (0)