summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorSeth Mos <seth.mos@xs4all.nl>2007-10-20 00:56:32 +0000
committerSeth Mos <seth.mos@xs4all.nl>2007-10-20 00:56:32 +0000
commitd9720602816c8abce528ef6a8b6456bad7f41fbf (patch)
tree5f676047e91349167ce13150ab6342806b00e4b5 /usr
parent4e41f518174f43b79eaaac4bbf8fee212d13a4d6 (diff)
downloadpfsense-d9720602816c8abce528ef6a8b6456bad7f41fbf.zip
pfsense-d9720602816c8abce528ef6a8b6456bad7f41fbf.tar.gz
List the available Gateways on the rules edit screen
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php
index 69e1ae4..149df43 100755
--- a/usr/local/www/firewall_rules_edit.php
+++ b/usr/local/www/firewall_rules_edit.php
@@ -760,9 +760,9 @@ include("head.inc");
/* build a list of gateways */
$gateways = array();
$gateways[] = "default"; // default to don't use this feature :)
- foreach($config['interfaces'] as $int) {
- if($int['gateway'] <> "")
- $gateways[]=$int['gateway'];
+ foreach($config['gateways']['gateway_item'] as $gw_item) {
+ if($gw_item['gateway'] <> "")
+ $gateways[] = $gw_item['name'];
}
?>
<tr>
@@ -781,7 +781,8 @@ include("head.inc");
if ($gw == "default") {
echo "<option value=\"\" {$selected}>{$gw}</option>\n";
} else {
- echo "<option value=\"{$gw}\" {$selected}>{$gw}</option>\n";
+ $gwip = lookup_gateway_ip_by_name($gw);
+ echo "<option value=\"{$gw}\" {$selected}>{$gw} - {$gwip}</option>\n";
}
}
if(is_array($config['load_balancer']['lbpool'])) {
OpenPOWER on IntegriCloud