summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNash Kaminski <nashkaminski@comcast.net>2016-07-10 04:08:32 -0500
committerChris Buechler <cmb@pfsense.org>2016-07-10 19:21:02 -0500
commiteb6cbf8cca9e18d3c2f08dac8a029e57d07148bd (patch)
tree55478a75e778d68b9f46da59c290a1ed7ab0d93e
parent9da9b5230bcc87ec54a0d189ecd3ee865f3ee08b (diff)
downloadpfsense-eb6cbf8cca9e18d3c2f08dac8a029e57d07148bd.zip
pfsense-eb6cbf8cca9e18d3c2f08dac8a029e57d07148bd.tar.gz
Include ignored DHCP server(s) config option even when advanced DHCP config is enabled
-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 faf2be8..92dfdcc 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