mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix for #14633, use original nexthop ip value instead of obtained via RouteGet
This commit is contained in:
parent
89ff6f6a38
commit
b4e87d5c98
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ func programRoute(path string, dest *net.IPNet, nh net.IP) error {
|
|||
return netlink.RouteAdd(&netlink.Route{
|
||||
Scope: netlink.SCOPE_UNIVERSE,
|
||||
LinkIndex: gwRoutes[0].LinkIndex,
|
||||
Gw: gwRoutes[0].Gw,
|
||||
Gw: nh,
|
||||
Dst: dest,
|
||||
})
|
||||
})
|
||||
|
@ -128,7 +128,7 @@ func removeRoute(path string, dest *net.IPNet, nh net.IP) error {
|
|||
return netlink.RouteDel(&netlink.Route{
|
||||
Scope: netlink.SCOPE_UNIVERSE,
|
||||
LinkIndex: gwRoutes[0].LinkIndex,
|
||||
Gw: gwRoutes[0].Gw,
|
||||
Gw: nh,
|
||||
Dst: dest,
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Add table
Reference in a new issue