mirror of
https://github.com/pi-hole/web.git
synced 2026-05-04 07:27:16 +01:00
Remove unnecessary else case
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
@@ -80,10 +80,8 @@ if (isset($setupVars["PIHOLE_INTERFACE"])) {
|
||||
// get the gateway address for the default route on the Pi-hole interface
|
||||
if ($piHoleInterface !== "unknown") {
|
||||
$IPv4GW=shell_exec("ip -4 route | grep default | grep '${piHoleInterface}' | cut -d ' ' -f 3");
|
||||
} else {
|
||||
$IPv4GW = "unknown";
|
||||
}
|
||||
// if the route did not return anything
|
||||
// if the route did not return anything or $piHoleInterface is unknown
|
||||
if (empty($IPv4GW)) {
|
||||
$IPv4GW = "unknown";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user