mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
interfaces: reject leases in dhcp advanced
PR: https://forum.opnsense.org/index.php?topic=7201.0
This commit is contained in:
parent
c3dfd37d8e
commit
c6dc3dbd22
@ -3577,6 +3577,9 @@ function DHCP_Config_File_Advanced($interface, $wancfg, $wanif)
|
||||
$dhclientconf .= "{$option_modifiers}";
|
||||
$dhclientconf .= "\n";
|
||||
$dhclientconf .= "\tscript \"/usr/local/sbin/dhclient-script.ext\";\n";
|
||||
if (is_ipaddrv4($wancfg['dhcprejectfrom'])) {
|
||||
$dhclientconf .= "\treject {$wancfg['dhcprejectfrom']};\n";
|
||||
}
|
||||
$dhclientconf .= "}\n";
|
||||
|
||||
$dhclientconf = DHCP_Config_File_Substitutions($wancfg, $wanif, $dhclientconf);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user