mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
parent
bba762b192
commit
3977f30869
1 changed files with 1 additions and 1 deletions
|
@ -956,7 +956,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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue