Remove idn2 as punycode conversion is handled by FTL

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2023-10-31 21:02:26 +01:00
parent 0a193f98a4
commit 480a8c8d7f
No known key found for this signature in database
2 changed files with 6 additions and 8 deletions

View file

@ -108,13 +108,11 @@ Main(){
if [ -z "${domain}" ]; then
echo "No domain specified"; exit 1
else
# convert domain to punycode
domain=$(idn2 "${domain}")
# convert the domain to lowercase
domain=$(echo "${domain}" | tr '[:upper:]' '[:lower:]')
fi
# domains are lowercased and converted to punycode by FTL since
# https://github.com/pi-hole/FTL/pull/1715
# no need to do it here
# Test if the authentication endpoint is available
TestAPIAvailability