Allow more precise deletion by passing ip as parameter
Signed-off-by: Mograine <ghiot.pierre@gmail.com>
This commit is contained in:
@ -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() {
|
||||||
|
Reference in New Issue
Block a user