summaryrefslogtreecommitdiffstats
path: root/src/etc
diff options
context:
space:
mode:
authorNash Kaminski <nashkaminski@comcast.net>2016-07-10 04:08:32 -0500
committerNash Kaminski <nashkaminski@comcast.net>2016-07-10 04:08:32 -0500
commit4feecbffe5a71297ab29b11ed763e1ef9ed0aaca (patch)
tree7762e02a50aab930015a31b790be031eabe526f5 /src/etc
parent86d431a89d920f64dda5e7e1821f720daf6e067b (diff)
downloadpfsense-4feecbffe5a71297ab29b11ed763e1ef9ed0aaca.zip
pfsense-4feecbffe5a71297ab29b11ed763e1ef9ed0aaca.tar.gz
Include ignored DHCP server(s) config option even when advanced DHCP config is enabled
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/inc/interfaces.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/inc/interfaces.inc b/src/etc/inc/interfaces.inc
index d5abe0d..09da0de 100644
--- a/src/etc/inc/interfaces.inc
+++ b/src/etc/inc/interfaces.inc
@@ -4355,6 +4355,9 @@ function DHCP_Config_File_Advanced($interface, $wancfg, $wanif) {
$dhclientconf .= "{$required_options}";
$dhclientconf .= "{$option_modifiers}";
$dhclientconf .= "\n";
+ if(is_ipaddrv4($wancfg['dhcprejectfrom'])){
+ $dhclientconf .= "reject {$wancfg['dhcprejectfrom']};\n";
+ }
$dhclientconf .= "\tscript \"/sbin/dhclient-script\";\n";
$dhclientconf .= "}\n";
OpenPOWER on IntegriCloud