parent
6ec8d40ae7
commit
e07819293a
1 changed files with 1 additions and 1 deletions
|
@ -979,7 +979,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…
Add table
Reference in a new issue