From febbe806d60ce45b45a9d8cd6f8599013324d526 Mon Sep 17 00:00:00 2001 From: Jamil Date: Tue, 18 Oct 2022 14:23:30 -0700 Subject: [PATCH] use hostname, not public ip (#1041) --- scripts/install.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 70d974b13..42ec290fe 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -14,8 +14,7 @@ dockerCheck () { fi } -curlCheck () { - if ! type curl > /dev/null; then +curlCheck () { if ! type curl > /dev/null; then echo 'curl not found. Please install curl to use this script.' exit fi @@ -146,7 +145,7 @@ EOF main() { defaultInstallDir=`pwd` - defaultExternalUrl="https://$public_ip" + defaultExternalUrl="https://$(hostname)" adminUser='' externalUrl='' promptEmail "Enter the administrator email you'd like to use for logging into this Firezone instance: " @@ -161,7 +160,6 @@ dockerCheck curlCheck telemetry_id=`od -vN "8" -An -tx1 /dev/urandom | tr -d " \n" ; echo` -public_ip=`curl -m 5 --silent ifconfig.me` capture "install" "email-not-collected@dummy.domain"