From 79f9b9bcdd6f684ff3fc629047609579ed0f1da4 Mon Sep 17 00:00:00 2001 From: Ermal Date: Thu, 20 May 2010 21:36:34 +0000 Subject: Fixes #610. Do not use the value of mtu blindly test it is set or use 1500 as default. --- etc/inc/filter.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc/inc') diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 659fae1..f01faee 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -692,7 +692,7 @@ function filter_generate_optcfg_array() { if(!is_ipaddr($oc['ipaddr']) && !empty($oc['ipaddr'])) $oic['type'] = $oc['ipaddr']; $oic['sn'] = get_interface_subnet($if); - $oic['mtu'] = $oc['mtu']; + $oic['mtu'] = empty($oc['mtu']) ? 1500 : $oc['mtu']; $oic['descr'] = $ifdetail; $oic['sa'] = gen_subnet($oic['ip'], $oic['sn']); $oic['nonat'] = $oc['nonat']; -- cgit v1.1