From f62d6dd4537b155f462d69aefb6414785791fcba Mon Sep 17 00:00:00 2001 From: Lantao Liu Date: Thu, 19 Jul 2018 18:09:04 -0700 Subject: [PATCH] runsc: copy gateway from the pod network interface. PiperOrigin-RevId: 205334841 Change-Id: Ia60d486f9aae70182fdc4af50cf7c915986126d7 --- runsc/sandbox/network.go | 1 + 1 file changed, 1 insertion(+) diff --git a/runsc/sandbox/network.go b/runsc/sandbox/network.go index 62dcdd9e9..d6685fd66 100644 --- a/runsc/sandbox/network.go +++ b/runsc/sandbox/network.go @@ -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