Merge pull request #69 from MiguelNdeCarvalho/master

Hide output of curl when getting the server ip
This commit is contained in:
aptalca 2020-10-06 16:42:01 -04:00 committed by GitHub
commit a64e45fd5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -231,7 +231,7 @@ if [ -n "$PEERS" ]; then
fi
PEERS_COUNT=$(echo "${#PEERS_ARRAY[@]}")
if [ -z "$SERVERURL" ] || [ "$SERVERURL" = "auto" ]; then
SERVERURL=$(curl icanhazip.com)
SERVERURL=$(curl -s icanhazip.com)
echo "**** SERVERURL var is either not set or is set to \"auto\", setting external IP to auto detected value of $SERVERURL ****"
else
echo "**** External server address is set to $SERVERURL ****"