diff options
-rw-r--r-- | etc/inc/interfaces.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 383518f..9df2474 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2906,8 +2906,8 @@ function interface_configure($interface = "wan", $reloadall = false, $linkupeven pfSense_interface_mtu($realhwif, $wancfg['mtu']); } else if ($wancfg['mtu'] != get_interface_mtu($realhwif)) pfSense_interface_mtu($realhwif, $wancfg['mtu']); - } else if ($wancfg['mtu'] != get_interface_mtu($realhwif)) - pfSense_interface_mtu($realhwif, $wancfg['mtu']); + } else if ($wancfg['mtu'] != get_interface_mtu($realif)) + pfSense_interface_mtu($realif, $wancfg['mtu']); } else if ($mtu != get_interface_mtu($realhwif)) /* XXX: This is really dangerous for example with vlans changing their parent mtu! */ pfSense_interface_mtu($realhwif, $mtu); |