Add curl IPv6 timeout

To ensure script continue in case of no IPv6 DNS resolution - otherwise keeps waiting forever
This commit is contained in:
Jakob Berlin 2021-02-17 22:35:58 +01:00 committed by GitHub
parent fcccf8145e
commit fcf4b0eb24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ fi
EXTERNAL_IPv4=$(curl -4 -s https://icanhazip.com)
EXTERNAL_IPv6=$(curl -6 -s https://icanhazip.com || true)
EXTERNAL_IPv6=$(curl -6 -s -m 10 https://icanhazip.com || true)
greenlight=""
while [[ ! $greenlight =~ ^(y|n)$ ]]; do