summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/interfaces.inc')
-rw-r--r--etc/inc/interfaces.inc2
1 files changed, 1 insertions, 1 deletions
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";
}
OpenPOWER on IntegriCloud