summaryrefslogtreecommitdiffstats
path: root/usr/local/www/firewall_rules_edit.php
diff options
context:
space:
mode:
authorBill Marquette <billm@pfsense.org>2005-06-13 02:39:23 +0000
committerBill Marquette <billm@pfsense.org>2005-06-13 02:39:23 +0000
commitbd8d9d92382a28daccb6692075d691acf069e24e (patch)
tree0d0723f3d498752f64a67f583e1f72b1f058cd7a /usr/local/www/firewall_rules_edit.php
parentc98ddde28f541a4177616c37994d1e5c20b265e4 (diff)
downloadpfsense-bd8d9d92382a28daccb6692075d691acf069e24e.zip
pfsense-bd8d9d92382a28daccb6692075d691acf069e24e.tar.gz
No need to check for default route, this option should only override the routing table
not make you choose per rule.
Diffstat (limited to 'usr/local/www/firewall_rules_edit.php')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php9
1 files changed, 3 insertions, 6 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index ba570d0..825f7be 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -782,9 +782,6 @@ Hint: the difference between block and reject is that with reject, a packet (TCP
/* build a list of gateways */
$gateways = array();
$gateways[] = "default"; // default to don't use this feature :)
- exec("/sbin/route -n get default |/usr/bin/grep gateway", $defroute);
- preg_match("/(\d+\.\d+\.\d+\.\d+)/", $defroute[0], $matches);
- $gateways[] = $matches[1];
foreach($config['interfaces'] as $int) {
if($int['gateway'] <> "")
$gateways[]=$int['gateway'];
@@ -800,10 +797,10 @@ Hint: the difference between block and reject is that with reject, a packet (TCP
$selected = " SELECTED";
else
$selected = "";
- if($gw <> "" and $gw != "default")
- echo "<option value=\"{$gw}\" {$selected}>{$gw}</option>\n";
- elseif ($gw == "default")
+ if ($gw == "default")
echo "<option value=\"\" {$selected}>{$gw}</option>\n";
+ els
+ echo "<option value=\"{$gw}\" {$selected}>{$gw}</option>\n";
}
?>
</select>
OpenPOWER on IntegriCloud