mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Frontend changes for DHCPv4 rapid commit support
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -340,6 +340,11 @@ if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "blocklists"
|
||||
} else {
|
||||
$DHCPIPv6 = false;
|
||||
}
|
||||
if (isset($setupVars["DHCP_rapid_commit"])) {
|
||||
$DHCP_rapid_commit = $setupVars["DHCP_rapid_commit"];
|
||||
} else {
|
||||
$DHCP_rapid_commit = false;
|
||||
}
|
||||
|
||||
} else {
|
||||
$DHCP = false;
|
||||
@@ -356,6 +361,7 @@ if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "blocklists"
|
||||
}
|
||||
$DHCPleasetime = 24;
|
||||
$DHCPIPv6 = false;
|
||||
$DHCP_rapid_commit = false;
|
||||
}
|
||||
if (isset($setupVars["PIHOLE_DOMAIN"])) {
|
||||
$piHoleDomain = $setupVars["PIHOLE_DOMAIN"];
|
||||
@@ -475,6 +481,14 @@ if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "blocklists"
|
||||
?>>Enable IPv6 support (SLAAC + RA)</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="checkbox">
|
||||
<label><input type="checkbox" name="DHCP_rapid_commit" class="DHCPgroup"
|
||||
<?php if ($DHCP_rapid_commit){ ?>checked<?php };
|
||||
if (!$DHCP){ ?> disabled<?php }
|
||||
?>>Enable DHCP rapid commit (fast address assignment)</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user