Skip to content
Snippets Groups Projects
Commit 92a27e85 authored by Bob Mottram's avatar Bob Mottram
Browse files

Unblocking a domain removes it from hosts file

parent 31b487fe
No related branches found
No related tags found
No related merge requests found
......@@ -603,6 +603,9 @@ function firewall_unblock_domain {
fi
sed -i "/${unblocked_domain}/d" "$FIREWALL_DOMAINS"
fi
if grep -q " $unblocked_domain" /etc/hosts; then
sed -i "/ $unblocked_domain/d" /etc/hosts
fi
}
function firewall_drop_spoofed_packets {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment