mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-04-11 21:29:29 +02:00
fix connection test
This commit is contained in:
parent
7d27ec6007
commit
3c7cb34eb9
@ -335,7 +335,11 @@ if [ "$1" = "status" ]; then
|
||||
|
||||
# test connection (accept self-signed certs here) ... calling the url /app should return INDEX
|
||||
connectionTest="n/a"
|
||||
connectionResponse=$(wget --no-check-certificate -qO- ${publicURL}/app 2>/dev/null)
|
||||
if [ "${sphinxrelay_connection}" == "tor" ]; then
|
||||
connectionResponse=$(torsocks wget --no-check-certificate -qO- ${publicURL}/app 2>/dev/null)
|
||||
else
|
||||
connectionResponse=$(wget --no-check-certificate -qO- ${publicURL}/app 2>/dev/null)
|
||||
fi
|
||||
if [ "${connectionResponse}" == "INDEX" ]; then
|
||||
connectionTest="OK"
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user