Skip to content

Commit 35a33ae

Browse files
committed
fix a bug
1 parent f15292a commit 35a33ae

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
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

cns/middlewares/k8sSwiftV2_windows.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package middlewares
22

33
import (
4-
"net"
54
"net/netip"
65

76
"github.com/Azure/azure-container-networking/cns"

0 commit comments

Comments
 (0)