From 4e97de7cb7a2608fe2ca245f0d05b7106d06e4f1 Mon Sep 17 00:00:00 2001 From: chandi Date: Tue, 21 Jul 2020 17:23:08 +0200 Subject: [PATCH] ipv6: coturn support --- docker-compose.coturn.yml | 3 ++- mod/coturn/turnserver.conf | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/docker-compose.coturn.yml b/docker-compose.coturn.yml index 0e65a57..6485378 100644 --- a/docker-compose.coturn.yml +++ b/docker-compose.coturn.yml @@ -4,7 +4,8 @@ services: image: instrumentisto/coturn:4.5 restart: unless-stopped command: - - "--external-ip=${EXTERNAL_IPv4}" + - "--external-ip=${EXTERNAL_IPv4}/${EXTERNAL_IPv4}" + - "--external-ip=${EXTERNAL_IPv6:-::1}/${EXTERNAL_IPv6:-::1}" - "--static-auth-secret=${TURN_SECRET}" volumes: - ssl_data:/etc/resty-auto-ssl diff --git a/mod/coturn/turnserver.conf b/mod/coturn/turnserver.conf index 832897e..ddb8111 100644 --- a/mod/coturn/turnserver.conf +++ b/mod/coturn/turnserver.conf @@ -60,4 +60,12 @@ no-tlsv1 no-tlsv1_1 # To enable single filename logs you need to enable the simple-log flag -syslog \ No newline at end of file +syslog + + +# Allocate Address Family according +# If enabled then TURN server allocates address family according the TURN +# Client <=> Server communication address family. +# (By default Coturn works according RFC 6156.) +# !!Warning: Enabling this option breaks RFC6156 section-4.2 (violates use default IPv4)!! +keep-address-family