summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-08-18 22:22:06 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-08-18 22:22:06 +0000
commit1fda0968c26beecd03f7b8a51eaad87b86e0ab4d (patch)
tree1a276d790ff67eb46fc69d9153d1128dc900c155 /usr/local
parent7aeea1637c5f36b11417d2d9893e1e380502f246 (diff)
downloadpfsense-1fda0968c26beecd03f7b8a51eaad87b86e0ab4d.zip
pfsense-1fda0968c26beecd03f7b8a51eaad87b86e0ab4d.tar.gz
Add DHCP gateways
Ticket #371
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/firewall_rules_edit.php11
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.
OpenPOWER on IntegriCloud