mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 10:48:26 +00:00
Merge branch 'development' into new/web_prefix
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -99,6 +99,11 @@ function fillDNSupstreams(value, servers) {
|
||||
applyCheckboxRadioStyle();
|
||||
}
|
||||
|
||||
function setInterfaceName(interface) {
|
||||
$("#interface-name-1").text(interface);
|
||||
$("#interface-name-2").text(interface);
|
||||
}
|
||||
|
||||
// Update the textfield with all (incl. custom) upstream servers
|
||||
function updateDNSserversTextfield(upstreams, customServers) {
|
||||
$("#DNSupstreamsTextfield").val(upstreams.join("\n"));
|
||||
@@ -114,6 +119,7 @@ function processDNSConfig() {
|
||||
.done(function (data) {
|
||||
// Initialize the DNS upstreams
|
||||
fillDNSupstreams(data.config.dns.upstreams, data.dns_servers);
|
||||
setInterfaceName(data.config.dns.interface.value);
|
||||
setConfigValues("dns", "dns", data.config.dns);
|
||||
})
|
||||
.fail(function (data) {
|
||||
|
||||
Reference in New Issue
Block a user