Use the same default interface used by FTL if none is set in pihole.toml

Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
RD WebDesign
2025-05-04 15:30:39 -03:00
parent 60107db056
commit 263d01a866

View File

@@ -102,6 +102,12 @@ function fillDNSupstreams(value, servers) {
}
function setInterfaceName(name) {
// If dns.interface is empty in pihole.toml, we show "eth0"
// (same default value used by FTL)
if (name === "") {
name = "eth0";
}
$("#interface-name-1").text(name);
$("#interface-name-2").text(name);
}