diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 7fb339de..09f0e7dd 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -179,9 +179,10 @@ SetQueryLogOptions(){ ProcessDHCPSettings() { + source "${setupVars}" + if [[ "${DHCP_ACTIVE}" == "true" ]]; then - source "${setupVars}" interface=$(grep 'PIHOLE_INTERFACE=' /etc/pihole/setupVars.conf | sed "s/.*=//") # Use eth0 as fallback interface