From 6ddac3bddfdd5369e170fccb3cad2d5b58256bd5 Mon Sep 17 00:00:00 2001 From: lorddavidiii Date: Tue, 26 May 2020 13:20:34 +0200 Subject: [PATCH] debian,turn: fix getting an external ip in IPv6 enabled networks --- debian/jitsi-meet-turnserver.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/jitsi-meet-turnserver.postinst b/debian/jitsi-meet-turnserver.postinst index bde88ae0a..4272647c5 100644 --- a/debian/jitsi-meet-turnserver.postinst +++ b/debian/jitsi-meet-turnserver.postinst @@ -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 "------------------------------------------------"