Allows setting a custom region

This commit is contained in:
Andrea Baron 2016-10-17 12:12:09 +02:00 committed by Werner Beroux
parent df6ad67c4a
commit 5d612361f4
1 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,11 @@ elif [ -n "$NGROK_HOSTNAME" ] || [ -n "$NGROK_SUBDOMAIN" ]; then
fi
fi
# Set a custom region
if [ -n "$NGROK_REGION" ]; then
ARGS="$ARGS -region=$NGROK_REGION "
fi
if [ -n "$NGROK_HEADER" ]; then
ARGS="$ARGS -host-header=$NGROK_HEADER "
fi