1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #15632 from mountkin/fix-15626

a quick fix to #15626
This commit is contained in:
Brian Goff 2015-08-17 20:26:47 -04:00
commit 1c916dbd83

View file

@ -1003,7 +1003,7 @@ func getDefaultRouteMtu() (int, error) {
return 0, err
}
for _, r := range routes {
if r.Default {
if r.Default && r.Iface != nil {
return r.Iface.MTU, nil
}
}