Skip to content

Commit fb7b987

Browse files
committed
remove gw
1 parent b32f48f commit fb7b987

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cns/middlewares/k8sSwiftV2_windows.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ func (k *K8sSWIFTv2Middleware) getIPv4Gateway(cidr string) (string, error) {
8585
func (k *K8sSWIFTv2Middleware) addRoutes(cidrs []string) []cns.Route {
8686
routes := make([]cns.Route, len(cidrs))
8787
for i, cidr := range cidrs {
88-
gatewayIP, _ := k.getIPv4Gateway(cidr)
8988
routes[i] = cns.Route{
90-
IPAddress: cidr,
91-
GatewayIPAddress: gatewayIP,
89+
IPAddress: cidr,
9290
}
9391
}
9492
return routes

0 commit comments

Comments
 (0)