diff options
author | Lantao Liu <lantaol@google.com> | 2018-07-19 18:09:04 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-07-19 18:09:56 -0700 |
commit | f62d6dd4537b155f462d69aefb6414785791fcba (patch) | |
tree | 1e7abd98857e924f07ee83bbe798da6a4f30ac6a /runsc/sandbox | |
parent | 8b8aad91d581ee5f600f5ec0b7fb407b36d07db1 (diff) |
runsc: copy gateway from the pod network interface.
PiperOrigin-RevId: 205334841
Change-Id: Ia60d486f9aae70182fdc4af50cf7c915986126d7
Diffstat (limited to 'runsc/sandbox')
-rw-r--r-- | runsc/sandbox/network.go | 1 |
1 files changed, 1 insertions, 0 deletions
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 |