Commit 2e2d865f authored by Franco Fichtner's avatar Franco Fichtner

dhcp: fixup inconsistent authoritative usage

PR: https://forum.opnsense.org/index.php?topic=2826.0
parent ac5f0677
...@@ -497,10 +497,10 @@ one-lease-per-client true; ...@@ -497,10 +497,10 @@ one-lease-per-client true;
deny duplicates; deny duplicates;
ping-check true; ping-check true;
update-conflict-detection false; update-conflict-detection false;
authoritative;
EOD; EOD;
$dhcpdifs = array(); $dhcpdifs = array();
$add_routers = false; $add_routers = false;
$gateways_arr = return_gateways_array(); $gateways_arr = return_gateways_array();
...@@ -1205,17 +1205,10 @@ one-lease-per-client true; ...@@ -1205,17 +1205,10 @@ one-lease-per-client true;
deny duplicates; deny duplicates;
ping-check true; ping-check true;
update-conflict-detection false; update-conflict-detection false;
authoritative;
EOD; EOD;
if (!isset($dhcpv6ifconf['disableauthoritative'])) {
$dhcpdv6conf .= "authoritative;\n";
}
if (isset($dhcpv6ifconf['alwaysbroadcast'])) {
$dhcpdv6conf .= "always-broadcast on\n";
}
$dhcpdv6ifs = array(); $dhcpdv6ifs = array();
$dhcpv6num = 0; $dhcpv6num = 0;
$nsupdate = false; $nsupdate = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment