diff options
author | Seth Mos <seth.mos@xs4all.nl> | 2007-10-20 00:56:32 +0000 |
---|---|---|
committer | Seth Mos <seth.mos@xs4all.nl> | 2007-10-20 00:56:32 +0000 |
commit | d9720602816c8abce528ef6a8b6456bad7f41fbf (patch) | |
tree | 5f676047e91349167ce13150ab6342806b00e4b5 | |
parent | 4e41f518174f43b79eaaac4bbf8fee212d13a4d6 (diff) | |
download | pfsense-d9720602816c8abce528ef6a8b6456bad7f41fbf.zip pfsense-d9720602816c8abce528ef6a8b6456bad7f41fbf.tar.gz |
List the available Gateways on the rules edit screen
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 9 |
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'])) { |