mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
runsc: copy gateway from the pod network interface.
PiperOrigin-RevId: 205334841 Change-Id: Ia60d486f9aae70182fdc4af50cf7c915986126d7
This commit is contained in:
@@ -350,6 +350,7 @@ func routesForIface(iface net.Interface) ([]boot.Route, *boot.Route, error) {
|
||||
routes = append(routes, boot.Route{
|
||||
Destination: r.Dst.IP.Mask(r.Dst.Mask),
|
||||
Mask: r.Dst.Mask,
|
||||
Gateway: r.Gw,
|
||||
})
|
||||
}
|
||||
return routes, def, nil
|
||||
|
||||
Reference in New Issue
Block a user