openvidu-redis: IPv6 listening (RFC 6540)

pull/563/head
Robert Scheck 2020-11-19 12:15:26 +01:00
parent 9b05739ea6
commit c11daa2d8b
1 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,10 @@
#!/bin/sh
[ -z "${REDIS_BINDING}" ] && REDIS_BINDING="127.0.0.1"
if [ -f /proc/net/if_inet6 ]; then
[ -z "${REDIS_BINDING}" ] && REDIS_BINDING="127.0.0.1 ::1"
else
[ -z "${REDIS_BINDING}" ] && REDIS_BINDING="127.0.0.1"
fi
printf "\n"
printf "\n ======================================="