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-10-28 15:21:05 +0300
committerMograine <ghiot.pierre@gmail.com>2019-10-28 15:21:05 +0300
commit193ff38ab3d6fd49a9912c5e07cd8e098267bf3a (patch)
tree6e69e5f2942cc7dd4dcc332b6cdaf27e704c99ad /advanced
parentbb8dbe9da5d703d8a15328ee33c0bda01959e5c4 (diff)
Allow more precise deletion by passing ip as parameter
Signed-off-by: Mograine <ghiot.pierre@gmail.com>
Diffstat (limited to 'advanced')
-rwxr-xr-xadvanced/Scripts/webpage.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh
index e990cc22..dc2c83af 100755
--- a/advanced/Scripts/webpage.sh
+++ b/advanced/Scripts/webpage.sh
@@ -572,8 +572,9 @@ AddCustomDNSAddress() {
}
RemoveCustomDNSAddress() {
- host="${args[2]}"
- sed -i "/.*${host}/d" "${dnscustomfile}"
+ ip="${args[2]}"
+ host="${args[3]}"
+ sed -i "/${ip} ${host}/d" "${dnscustomfile}"
}
main() {