summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index ab604e2..1eceed8 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -89,7 +89,7 @@ function filter_configure() {
$wanif = get_real_wan_interface();
/* set up MSS clamping */
- if ($config['interfaces']['wan']['mtu'] <> "" and is_integer($config['interfaces']['wan']['mtu']))
+ if ($config['interfaces']['wan']['mtu'] <> "" and is_integer(intval($config['interfaces']['wan']['mtu'])))
$mssclamp = "max-mss " . (intval($config['interfaces']['wan']['mtu'] - 40));
else if ($config['interfaces']['wan']['ipaddr'] == "pppoe")
$mssclamp = "max-mss 1452";
OpenPOWER on IntegriCloud