Skip to content

Commit bf09112

Browse files
committed
get rid of hardcode ip
1 parent 984b39d commit bf09112

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

network/network_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func (nm *networkManager) configureHcnNetwork(nwInfo *EndpointInfo, extIf *exter
294294
// Set the Gateway route
295295
Routes: []hcn.Route{
296296
{
297-
NextHop: "10.210.0.1",
297+
NextHop: subnet.Gateway.String(),
298298
DestinationPrefix: defaultRouteCIDR,
299299
},
300300
},

0 commit comments

Comments
 (0)