summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-03-31 10:33:54 +0000
committerErmal <eri@pfsense.org>2010-03-31 10:33:54 +0000
commit2f678757bf78bb9525be8f211da8e6a81f5ccf6e (patch)
treebc133def51577cf45303a5d99bbe776d7ca94291 /usr/local
parent79afe4e471c65080d54d0aa064023126509589bc (diff)
downloadpfsense-2f678757bf78bb9525be8f211da8e6a81f5ccf6e.zip
pfsense-2f678757bf78bb9525be8f211da8e6a81f5ccf6e.tar.gz
Do not create faulty gateway entires with just defaultgw set it breaks logic.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/interfaces.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 9cf592e..cb6466f 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -490,10 +490,8 @@ if ($_POST) {
/* for dynamic interfaces we tack a gateway item onto the array to prevent system
* log messages from appearing. They can also manually add these items */
/* 1st added gateway gets a default bit */
- $gateway_item = array();
- if(empty($a_gateways)) {
- $gateway_item['defaultgw'] = "true";
- } else {
+ if(!empty($a_gateways)) {
+ $gateway_item = array();
/* check for duplicates */
$skip = false;
foreach($a_gateways as $item) {
OpenPOWER on IntegriCloud