From 0ff11d6349bcac9551a78041e90b44cb781dfc6c Mon Sep 17 00:00:00 2001 From: yubiuser Date: Mon, 6 Jun 2022 22:57:55 +0200 Subject: [PATCH] Omit DHCPdomain Co-authored-by: DL6ER --- settings.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/settings.php b/settings.php index 31eb9de1..f1b443d4 100644 --- a/settings.php +++ b/settings.php @@ -437,10 +437,10 @@ if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "dns", "piho $DHCP = false; // Try to guess initial settings if ($IPv4GW !== "unknown") { - $DHCPdomain = explode(".", $IPv4GW); - $DHCPstart = $DHCPdomain[0] . "." . $DHCPdomain[1] . "." . $DHCPdomain[2] . ".201"; - $DHCPend = $DHCPdomain[0] . "." . $DHCPdomain[1] . "." . $DHCPdomain[2] . ".251"; - $DHCProuter = $DHCPdomain[0] . "." . $DHCPdomain[1] . "." . $DHCPdomain[2] . ".1"; + $DHCPparts = explode(".", $IPv4GW); + $DHCPstart = $DHCPparts[0] . "." . $DHCPparts[1] . "." . $DHCPparts[2] . ".201"; + $DHCPend = $DHCPparts[0] . "." . $DHCPparts[1] . "." . $DHCPparts[2] . ".251"; + $DHCProuter = $IPv4GW; } else { $DHCPstart = ""; $DHCPend = "";