From b1939343b069db4ee45f4911485ad1fe78c055bd Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 7 Mar 2013 11:45:19 +0000 Subject: Set mtu to the correct interface --- etc/inc/interfaces.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc') 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); -- cgit v1.1