Unblocking a domain removes it from hosts file

This commit is contained in:
Bob Mottram 2018-03-29 14:17:30 +01:00
parent 31b487febe
commit 92a27e8581
1 changed files with 3 additions and 0 deletions

View File

@ -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 {