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:
commit
1c916dbd83
1 changed files with 1 additions and 1 deletions
|
@ -1003,7 +1003,7 @@ func getDefaultRouteMtu() (int, error) {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
for _, r := range routes {
|
for _, r := range routes {
|
||||||
if r.Default {
|
if r.Default && r.Iface != nil {
|
||||||
return r.Iface.MTU, nil
|
return r.Iface.MTU, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue