From 8e94fc637e0b06d961e0940a44a2d1000524b5cd Mon Sep 17 00:00:00 2001 From: Paul Yu Date: Tue, 21 Jan 2025 22:00:01 -0500 Subject: [PATCH] just for testing --- cni/network/invoker_cns.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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{