diff options
author | Scott Ullrich <sullrich@pfsense-org.local> | 2009-08-24 16:37:05 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense-org.local> | 2009-08-24 16:37:05 -0400 |
commit | b547deb6456cfb3b7b74769fe2628b91331971d7 (patch) | |
tree | e60b95add3544b170ad5264325290eebfdc13216 /usr | |
parent | 96fade8348efa330ff371c8c67861df0c78ef4c5 (diff) | |
download | pfsense-b547deb6456cfb3b7b74769fe2628b91331971d7.zip pfsense-b547deb6456cfb3b7b74769fe2628b91331971d7.tar.gz |
Set default gateway correctly by checking for yes or on
Diffstat (limited to 'usr')
-rwxr-xr-x | usr/local/www/system_gateways_edit.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/system_gateways_edit.php b/usr/local/www/system_gateways_edit.php index 6f0711f..66ac916 100755 --- a/usr/local/www/system_gateways_edit.php +++ b/usr/local/www/system_gateways_edit.php @@ -137,7 +137,7 @@ if ($_POST) { $gateway['descr'] = $_POST['descr']; $gateway['monitor'] = $_POST['monitor']; - if ($_POST['defaultgw'] == "yes") { + if ($_POST['defaultgw'] == "yes" or $_POST['defaultgw'] == "on") { $i = 0; foreach($a_gateways as $gw) { unset($config['gateways'][$i]['defaultgw']); |