diff --git a/cni/network/invoker_cns.go b/cni/network/invoker_cns.go index 78a0907a44..5c752668b9 100644 --- a/cni/network/invoker_cns.go +++ b/cni/network/invoker_cns.go @@ -362,9 +362,9 @@ func getRoutes(cnsRoutes []cns.Route, skipDefaultRoutes bool) ([]network.RouteIn } gw := net.ParseIP(route.GatewayIPAddress) - if skipDefaultRoutes { - return nil, errors.Wrap(errInvalidGatewayIP, route.GatewayIPAddress) - } + // if gw == nil && skipDefaultRoutes { + // return nil, errors.Wrap(errInvalidGatewayIP, route.GatewayIPAddress) + // } routes = append(routes, network.RouteInfo{