diff --git a/usr/local/www/firewall_rules_edit.php b/usr/local/www/firewall_rules_edit.php index 49c8e53a20..534db444c1 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 "\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 "\n"; + } + } ?>
Leave blank for default.