Add DHCP gateways

Ticket #371
This commit is contained in:
Scott Ullrich 2005-08-18 22:22:06 +00:00
parent 7aeea1637c
commit 1fda0968c2

View File

@ -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.