Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 108c986a authored by Guillaume Mella's avatar Guillaume Mella
Browse files

add http + https detection

parent a0fd6732
......@@ -48,12 +48,32 @@ handleIp(){
else
FTP=""
fi
if curl -q -m 1 --retry-max-time 0 --connect-timeout 1 http://$IP &> /dev/null
then
HTTP="http"
else
HTTP=""
fi
curl -v -q -m 1 --retry-max-time 0 --connect-timeout 1 https://$IP &> testHTTPS
EXPIRE=$(grep expire testHTTPS)
if [ -n "$EXPIRE" ]
then
HTTPS="https(${EXPIRE#*:})"
else
HTTPS=""
fi
rm testHTTPS
if ! echo $HOST | grep $skipExpr &> /dev/null
then
echo "|$IP|$HOST| $PING $FTP |"
echo "|$IP|$HOST| $PING $FTP $HTTP $HTTPS|"
fi
fi
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment