diff options
author | Mograine <ghiot.pierre@gmail.com> | 2019-11-27 02:27:57 +0300 |
---|---|---|
committer | Mograine <ghiot.pierre@gmail.com> | 2019-11-27 02:28:44 +0300 |
commit | c809c34024ac302e11ba90761526d2c57a006f45 (patch) | |
tree | 20849cc85a17cae5fd87eaa87b5938ce5ae591c6 /advanced | |
parent | b93628acb3d8d77775dae9778d07262c93c0aca1 (diff) |
Add user feedback
Signed-off-by: Mograine <ghiot.pierre@gmail.com>
Diffstat (limited to 'advanced')
-rwxr-xr-x | advanced/Scripts/webpage.sh | 10 |
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() { |