Skip to content

Commit

Permalink
remove gw
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 committed Jan 21, 2025
1 parent b32f48f commit fb7b987
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cns/middlewares/k8sSwiftV2_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,8 @@ func (k *K8sSWIFTv2Middleware) getIPv4Gateway(cidr string) (string, error) {
func (k *K8sSWIFTv2Middleware) addRoutes(cidrs []string) []cns.Route {
routes := make([]cns.Route, len(cidrs))
for i, cidr := range cidrs {
gatewayIP, _ := k.getIPv4Gateway(cidr)
routes[i] = cns.Route{
IPAddress: cidr,
GatewayIPAddress: gatewayIP,
IPAddress: cidr,
}
}
return routes
Expand Down

0 comments on commit fb7b987

Please sign in to comment.