File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments