Browse Source

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

j8
lorddavidiii 5 years ago
parent
commit
6ddac3bddf
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      debian/jitsi-meet-turnserver.postinst

+ 1
- 1
debian/jitsi-meet-turnserver.postinst View File

106
         TURN_SECRET="$RET"
106
         TURN_SECRET="$RET"
107
 
107
 
108
         # no turn config exists, lt's copy template and fill it in
108
         # no turn config exists, lt's copy template and fill it in
109
-        PUBLIC_IP=$(dig +short myip.opendns.com @resolver1.opendns.com) || true
109
+        PUBLIC_IP=$(dig -4 +short myip.opendns.com a @resolver1.opendns.com) || true
110
         if [ -z "$PUBLIC_IP" ] ; then
110
         if [ -z "$PUBLIC_IP" ] ; then
111
             PUBLIC_IP="127.0.0.1"
111
             PUBLIC_IP="127.0.0.1"
112
             echo "------------------------------------------------"
112
             echo "------------------------------------------------"

Loading…
Cancel
Save