From 6329c4297a90aa7ad2f6595e8af1619673c2aa8b Mon Sep 17 00:00:00 2001 From: grm34 Date: Tue, 12 May 2020 16:00:48 +0200 Subject: [PATCH] Adds secure HTTPS connection for ipinfo API --- src/arch/mirrorlist | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arch/mirrorlist b/src/arch/mirrorlist index d5eda875..fb41f1cf 100644 --- a/src/arch/mirrorlist +++ b/src/arch/mirrorlist @@ -14,7 +14,7 @@ _mirrorlist() { ### Get user country code from ipinfo.io API _info "${MSG_GET_MIRRORS}" - CODE=$( curl -s ipinfo.io/country?token=${TOKEN} ) + CODE=$( curl -s https://ipinfo.io/country?token=${TOKEN} ) CHECK_COUNTRY_CODE=$( echo "${COUNTRY}" | grep "error" ) ### Update mirrorlist if country code properly detected @@ -52,7 +52,7 @@ _timezone() { ### Get user timezone from ipinfo.io API _info "${MSG_GET_TIMEZONE}" - TIMEZONE=$( curl -s ipinfo.io/timezone?token=${TOKEN} ) + TIMEZONE=$( curl -s https://ipinfo.io/timezone?token=${TOKEN} ) ### Update timezone if properly detected if grep -Fxq "${TIMEZONE}" ./timezone; then @@ -75,7 +75,7 @@ _clock() { _check timedatectl set-timezone "${TIMEZONE}" # Ensure UDP 123 is open - GET_IP=$( curl -s ipinfo.io/ip?token=${TOKEN} ) + GET_IP=$( curl -s https://ipinfo.io/ip?token=${TOKEN} ) CHECK_IP=$( echo "${GET_IP}" | grep "error" ) if [[ ! ${CHECK_IP} ]]; then