Unblocking a domain removes it from hosts file
This commit is contained in:
parent
31b487febe
commit
92a27e8581
|
@ -603,6 +603,9 @@ function firewall_unblock_domain {
|
||||||
fi
|
fi
|
||||||
sed -i "/${unblocked_domain}/d" "$FIREWALL_DOMAINS"
|
sed -i "/${unblocked_domain}/d" "$FIREWALL_DOMAINS"
|
||||||
fi
|
fi
|
||||||
|
if grep -q " $unblocked_domain" /etc/hosts; then
|
||||||
|
sed -i "/ $unblocked_domain/d" /etc/hosts
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function firewall_drop_spoofed_packets {
|
function firewall_drop_spoofed_packets {
|
||||||
|
|
Loading…
Reference in New Issue