runsc: copy gateway from the pod network interface.

PiperOrigin-RevId: 205334841
Change-Id: Ia60d486f9aae70182fdc4af50cf7c915986126d7
This commit is contained in:
Lantao Liu
2018-07-19 18:09:56 -07:00
committed by Shentubot
parent 8b8aad91d5
commit f62d6dd453
+1
View File
@@ -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