Don't display message about stealth mode disabled

This commit is contained in:
Jeremy Gardais 2018-04-26 14:44:43 +02:00
parent 89724099bf
commit 6f67529e95
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ function AllowUserToConnectToThisMachineUsingSsh()
## EnsurePingIsAllowed {{{
function EnsurePingIsAllowed()
{
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode off
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode off &> /dev/null
[[ "${DEBUG}" == "0" ]] && printf '\e[1;33m%-6s\e[m\n' "DEBUG: Désactivation du mode furtif (ping)."
if [ $? != 0 ]; then
printf '\e[1;31m%-6s\e[m\n' "ERREUR: La désactivation du mode furtif a échoué"