Skip to content

Commit d1c2ae3

Browse files
committed
allow gw as empty string
1 parent 7ddf286 commit d1c2ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cni/network/invoker_cns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ func getRoutes(cnsRoutes []cns.Route, skipDefaultRoutes bool) ([]network.RouteIn
362362
}
363363

364364
gw := net.ParseIP(route.GatewayIPAddress)
365-
if gw == nil && skipDefaultRoutes {
365+
if skipDefaultRoutes {
366366
return nil, errors.Wrap(errInvalidGatewayIP, route.GatewayIPAddress)
367367
}
368368

0 commit comments

Comments
 (0)