debian,turn: fix getting an external ip in IPv6 enabled networks

This commit is contained in:
lorddavidiii
2020-05-26 13:20:34 +02:00
committed by GitHub
parent 663a65ad81
commit 6ddac3bddf
+1 -1
View File
@@ -106,7 +106,7 @@ case "$1" in
TURN_SECRET="$RET"
# no turn config exists, lt's copy template and fill it in
PUBLIC_IP=$(dig +short myip.opendns.com @resolver1.opendns.com) || true
PUBLIC_IP=$(dig -4 +short myip.opendns.com a @resolver1.opendns.com) || true
if [ -z "$PUBLIC_IP" ] ; then
PUBLIC_IP="127.0.0.1"
echo "------------------------------------------------"