summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-05-03 05:21:08 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-05-03 05:21:08 +0000
commit53f323298e94b9cb7a28f972ec299aae9f7fbee6 (patch)
tree7f78d7fd879812ab020c1206acbc3ce56d7b92eb
parent4fca174c22145955179eace3aa1bb6f780bda590 (diff)
downloadpfsense-53f323298e94b9cb7a28f972ec299aae9f7fbee6.zip
pfsense-53f323298e94b9cb7a28f972ec299aae9f7fbee6.tar.gz
Add hidden command to disable authoritative mode (dhcp server). To utilize do something like this in php pfSense shell: $config['dhcpd']['optx']['disableauthoritative'] = true; write_config();
-rw-r--r--etc/inc/services.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index fff377e..341f00f 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -107,7 +107,6 @@ function services_dhcpd_configure() {
option domain-name "{$syscfg['domain']}";
default-lease-time 7200;
max-lease-time 86400;
-authoritative;
log-facility local7;
ddns-update-style none;
one-lease-per-client true;
@@ -122,6 +121,10 @@ EOD;
*/
$dhcpnum = 0;
foreach ($dhcpdcfg as $dhcpif => $dhcpifconf) {
+
+ if(!isset($dhcpifconf['disableauthoritative']))
+ $dhcpdconf .= "authoritative;\n";
+
if($dhcpifconf['failover_peerip'] <> "") {
/*
* yep, failover peer is defined.
OpenPOWER on IntegriCloud