Skip to content

Commit

Permalink
Connect IPv6 detection of the DHCP server
Browse files Browse the repository at this point in the history
  • Loading branch information
DL6ER committed Mar 7, 2017
1 parent 31e8fcf commit ba9f0a9
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,6 @@
</div>
<?php
// Pi-Hole DHCP server

// Detect IPv6
$usingipv6 = false;
if(strlen($piHoleIPv6) > 0 && $piHoleIPv6 != "unknown")
{
if(substr($piHoleIPv6, 0, 4) != "fe80")
{
$usingipv6 = true;
}
}

if(isset($setupVars["DHCP_ACTIVE"]))
{
if($setupVars["DHCP_ACTIVE"] == 1)
Expand Down Expand Up @@ -171,7 +160,7 @@
}
else
{
$DHCPIPv6 = $usingipv6;
$DHCPIPv6 = false;
}

}
Expand All @@ -191,7 +180,7 @@
$DHCProuter = "";
}
$DHCPleasetime = 24;
$DHCPIPv6 = $usingipv6;
$DHCPIPv6 = false;
}
if(isset($setupVars["PIHOLE_DOMAIN"])){
$piHoleDomain = $setupVars["PIHOLE_DOMAIN"];
Expand Down

0 comments on commit ba9f0a9

Please sign in to comment.