From 1e08ce645ba25e2678ce08a55d969f4704acf8d4 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 7 Mar 2013 11:46:29 +0000 Subject: Hopefully is correct now --- etc/inc/interfaces.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 9df2474..1174861 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -2906,7 +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($realif)) + } + 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! */ -- cgit v1.1