mirror of
https://github.com/pi-hole/web.git
synced 2025-12-25 05:05:33 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user