Merge pull request #69 from MiguelNdeCarvalho/master

Hide output of curl when getting the server ip
pull/71/head
aptalca 4 years ago committed by GitHub
commit a64e45fd5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save