diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-08-18 22:22:06 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-08-18 22:22:06 +0000 |
commit | 1fda0968c26beecd03f7b8a51eaad87b86e0ab4d (patch) | |
tree | 1a276d790ff67eb46fc69d9153d1128dc900c155 /usr/local | |
parent | 7aeea1637c5f36b11417d2d9893e1e380502f246 (diff) | |
download | pfsense-1fda0968c26beecd03f7b8a51eaad87b86e0ab4d.zip pfsense-1fda0968c26beecd03f7b8a51eaad87b86e0ab4d.tar.gz |
Add DHCP gateways
Ticket #371
Diffstat (limited to 'usr/local')
-rwxr-xr-x | usr/local/www/firewall_rules_edit.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 49c8e53..534db44 100755 --- a/usr/local/www/firewall_rules_edit.php +++ b/usr/local/www/firewall_rules_edit.php @@ -819,6 +819,17 @@ Hint: the difference between block and reject is that with reject, a packet (TCP echo "<option value=\"{$lb['name']}\">{$lb['name']}</option>\n"; } } + for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) { + if($config['interfaces']['opt' . $i]['ipaddr'] == "dhcp") { + $descr = $config['interfaces']['opt' . $i]['descr']; + if ($pconfig['gateway'] == $config['interfaces']['opt' . $i]) { + $selected = " SELECTED"; + } else { + $selected = ""; + } + echo "<option value=\"opt{$i}\" {$selected}>OPT{$i} - {$descr}</option>\n"; + } + } ?> </select> <p><strong>Leave blank for default. |