__coturn: allow configuration of litening-ip

This commit is contained in:
fnux 2020-05-15 12:26:50 +02:00
parent 442dec51ed
commit 45f601c911
3 changed files with 15 additions and 1 deletions

View file

@ -51,11 +51,19 @@ cat << EOF
# Listener IP address of relay server. Multiple listeners can be specified. # Listener IP address of relay server. Multiple listeners can be specified.
# If no IP(s) specified in the config file or in the command line options, # If no IP(s) specified in the config file or in the command line options,
# then all IPv4 and IPv6 system IPs will be used for listening. # then all IPv4 and IPv6 system IPs will be used for listening.
#
#listening-ip=172.17.19.101 #listening-ip=172.17.19.101
#listening-ip=10.207.21.238 #listening-ip=10.207.21.238
#listening-ip=2607:f0d0:1002:51::4 #listening-ip=2607:f0d0:1002:51::4
EOF
for ip in $LISTENING_IPS; do
echo "listening-ip=$ip"
done
cat << EOF
# Auxiliary STUN/TURN server listening endpoint. # Auxiliary STUN/TURN server listening endpoint.
# Aux servers have almost full TURN and STUN functionality. # Aux servers have almost full TURN and STUN functionality.
# The (minor) limitations are: # The (minor) limitations are:

View file

@ -69,6 +69,11 @@ if [ -f "$__object/parameter/denied-peer" ]; then
export DENIED_PEERS export DENIED_PEERS
fi fi
if [ -f "$__object/parameter/listening-ip" ]; then
LISTENING_IPS=$(cat "$__object/parameter/listening-ip")
export LISTENING_IPS
fi
if [ -f "$__object/parameter/cert" ]; then if [ -f "$__object/parameter/cert" ]; then
CERT=$(cat "$__object/parameter/cert") CERT=$(cat "$__object/parameter/cert")
export CERT export CERT

View file

@ -1,2 +1,3 @@
allowed-peer allowed-peer
denied-peer denied-peer
listening-ip