Use HTTPS when determining public IPv4/IPv6
This commit is contained in:
parent
6db5c2e6ad
commit
b983e721ed
1 changed files with 2 additions and 2 deletions
|
|
@ -601,9 +601,9 @@ function installOpenVPN () {
|
|||
|
||||
# Behind NAT, we'll default to the publicly reachable IPv4/IPv6.
|
||||
if [[ $IPV6_SUPPORT == "y" ]]; then
|
||||
PUBLIC_IPV4=$(curl ifconfig.co)
|
||||
PUBLIC_IPV4=$(curl https://ifconfig.co)
|
||||
else
|
||||
PUBLIC_IPV4=$(curl -4 ifconfig.co)
|
||||
PUBLIC_IPV4=$(curl -4 https://ifconfig.co)
|
||||
fi
|
||||
ENDPOINT=${ENDPOINT:-$PUBLIC_IPV4}
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue