mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 04:30:55 +00:00
Allow more precise deletion by passing ip as parameter
Signed-off-by: Mograine <ghiot.pierre@gmail.com>
This commit is contained in:
parent
bb8dbe9da5
commit
193ff38ab3
@ -572,8 +572,9 @@ AddCustomDNSAddress() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
RemoveCustomDNSAddress() {
|
RemoveCustomDNSAddress() {
|
||||||
host="${args[2]}"
|
ip="${args[2]}"
|
||||||
sed -i "/.*${host}/d" "${dnscustomfile}"
|
host="${args[3]}"
|
||||||
|
sed -i "/${ip} ${host}/d" "${dnscustomfile}"
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user