mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +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
1 changed files with 3 additions and 2 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue