From b983e721edf471cfc0ca5ae30a1dc5455c05cc39 Mon Sep 17 00:00:00 2001 From: John E <44390932+jmeubank@users.noreply.github.com> Date: Thu, 2 Apr 2020 19:52:45 -0700 Subject: [PATCH] Use HTTPS when determining public IPv4/IPv6 --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index d5a14a7..51a1daa 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -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