use hostname, not public ip (#1041)

This commit is contained in:
Jamil
2022-10-18 14:23:30 -07:00
committed by GitHub
parent b20b1336c4
commit febbe806d6

View File

@@ -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"