diff options
author | Ermal <eri@pfsense.org> | 2010-05-20 21:36:34 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-05-20 21:36:55 +0000 |
commit | 79f9b9bcdd6f684ff3fc629047609579ed0f1da4 (patch) | |
tree | c049b3fe32ffc6f293d57f56deab516d9b400061 /etc | |
parent | fdb085fade815c447e2172a67ffb0164c17d795f (diff) | |
download | pfsense-79f9b9bcdd6f684ff3fc629047609579ed0f1da4.zip pfsense-79f9b9bcdd6f684ff3fc629047609579ed0f1da4.tar.gz |
Fixes #610. Do not use the value of mtu blindly test it is set or use 1500 as default.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/filter.inc | 2 |
1 files changed, 1 insertions, 1 deletions
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']; |