Skip to content

Commit

Permalink
hotfix for adding duplicated routes (#2161)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 authored Aug 21, 2023
1 parent 1b2a04a commit ec9d41e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions network/transparent_endpointclient_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,10 @@ func (client *TransparentEndpointClient) AddEndpointRules(epInfo *EndpointInfo)
log.Printf("[net] Adding route for the ip %v", ipNet.String())
routeInfo.Dst = ipNet
routeInfoList = append(routeInfoList, routeInfo)
if err := addRoutes(client.netlink, client.netioshim, client.hostVethName, routeInfoList); err != nil {
return newErrorTransparentEndpointClient(err.Error())
}
}

if err := addRoutes(client.netlink, client.netioshim, client.hostVethName, routeInfoList); err != nil {
return newErrorTransparentEndpointClient(err.Error())
}

log.Printf("calling setArpProxy for %v", client.hostVethName)
Expand Down

0 comments on commit ec9d41e

Please sign in to comment.