Added support for ipinfo with apikey, also removes missingauth message from ipinfo

This commit is contained in:
Pawan Rai 2023-05-14 10:55:50 +05:30
parent 10607691f6
commit c51859971d
No known key found for this signature in database
GPG Key ID: 275C3AC7131F2E70

View File

@ -21,6 +21,12 @@ if [[ -f /config/www/speedtest_worker.js ]]; then
cp /config/www/speedtest_worker.js /app/www/public/speedtest_worker.js
fi
# sets apikey for ipinfo.io, if it exists
if [ -n "$IPINFO_APIKEY" ]; then
sed -i "s/\$IPINFO_APIKEY = .*/\$IPINFO_APIKEY = '${IPINFO_APIKEY:-}';/g" \
/app/www/public/backend/getIP_ipInfo_apikey.php
fi
# enables custom results page
if [ "$CUSTOM_RESULTS" == "true" ]; then
echo "custom results"