summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateways_edit.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense-org.local>2009-08-24 16:37:05 -0400
committerScott Ullrich <sullrich@pfsense-org.local>2009-08-24 16:37:05 -0400
commitb547deb6456cfb3b7b74769fe2628b91331971d7 (patch)
treee60b95add3544b170ad5264325290eebfdc13216 /usr/local/www/system_gateways_edit.php
parent96fade8348efa330ff371c8c67861df0c78ef4c5 (diff)
downloadpfsense-b547deb6456cfb3b7b74769fe2628b91331971d7.zip
pfsense-b547deb6456cfb3b7b74769fe2628b91331971d7.tar.gz
Set default gateway correctly by checking for yes or on
Diffstat (limited to 'usr/local/www/system_gateways_edit.php')
-rwxr-xr-xusr/local/www/system_gateways_edit.php2
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']);
OpenPOWER on IntegriCloud