checker: add timeout on openssl s_client

This commit is contained in:
nemunaire 2019-03-27 00:22:49 +01:00
parent 49dd68dae8
commit e7900cc5ac

View File

@ -32,7 +32,7 @@ do
EOF EOF
# port 443 # port 443
PAGE=$(echo | openssl s_client -host "${IP}1" -port 443 2> /dev/null) && PAGE=$(echo | busybox timeout -t 3 openssl s_client -host "${IP}1" -port 443 2> /dev/null) &&
curl -X POST -d @- "https://adlin.nemunai.re/challenge/101" <<EOF curl -X POST -d @- "https://adlin.nemunai.re/challenge/101" <<EOF
{ {
"token": "${SECRET_KEY}", "token": "${SECRET_KEY}",