Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMograine <ghiot.pierre@gmail.com>2019-11-27 02:27:57 +0300
committerMograine <ghiot.pierre@gmail.com>2019-11-27 02:28:44 +0300
commitc809c34024ac302e11ba90761526d2c57a006f45 (patch)
tree20849cc85a17cae5fd87eaa87b5938ce5ae591c6 /advanced
parentb93628acb3d8d77775dae9778d07262c93c0aca1 (diff)
Add user feedback
Signed-off-by: Mograine <ghiot.pierre@gmail.com>
Diffstat (limited to 'advanced')
-rwxr-xr-xadvanced/Scripts/webpage.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh
index 7568d119..88ee00f8 100755
--- a/advanced/Scripts/webpage.sh
+++ b/advanced/Scripts/webpage.sh
@@ -599,15 +599,25 @@ SetPrivacyLevel() {
}
AddCustomDNSAddress() {
+ echo -e " ${TICK} Adding custom DNS entry..."
+
ip="${args[2]}"
host="${args[3]}"
echo "${ip} ${host}" >> "${dnscustomfile}"
+
+ # Restart dnsmasq to load new custom DNS entries
+ RestartDNS
}
RemoveCustomDNSAddress() {
+ echo -e " ${TICK} Removing custom DNS entry..."
+
ip="${args[2]}"
host="${args[3]}"
sed -i "/${ip} ${host}/d" "${dnscustomfile}"
+
+ # Restart dnsmasq to update removed custom DNS entries
+ RestartDNS
}
main() {