openvidu-redis: IPv6 listening (RFC 6540)

This commit is contained in:
Robert Scheck 2020-11-19 12:15:26 +01:00
parent 9b05739ea6
commit c11daa2d8b

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 ======================================="