From 015554f379e2fe15bcce6f7c4db5292645537716 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 1 Aug 2008 02:39:46 +0000 Subject: Detect MTU size using intval() trying to resolve issue outlined here: http://forum.pfsense.org/index.php/topic,10666.0.html --- etc/inc/interfaces.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index 7c1f6d5..602c350 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -154,7 +154,7 @@ function interfaces_lan_configure() { /* force all bridged interfaces to use same mtu */ $mtu = get_interface_mtu($config['interfaces'][$lancfg['bridge']]['if']); - if($mtu == "0") { + if(intval($mtu) == 0) { log_error("An error occurred while trying to obtain the MTU setting. Using 1500."); $mtu = "1500"; } -- cgit v1.1