We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1fb631c + 00a2e88 commit bc358f3Copy full SHA for bc358f3
Containers/talk/start.sh
@@ -30,14 +30,21 @@ if [ -n "$IPv4_ADDRESS_TALK" ] && [ "$IPv4_ADDRESS_TALK_RELAY" = "$IPv4_ADDRESS_
30
IPv4_ADDRESS_TALK=""
31
fi
32
33
+IP_BINDING="::"
34
+if grep -q "1" /sys/module/ipv6/parameters/disable \
35
+|| grep -q "1" /proc/sys/net/ipv6/conf/all/disable_ipv6 \
36
+|| grep -q "1" /proc/sys/net/ipv6/conf/default/disable_ipv6; then
37
+ IP_BINDING="0.0.0.0"
38
+fi
39
+
40
# Turn
41
cat << TURN_CONF > "/conf/eturnal.yml"
42
eturnal:
43
listen:
- - ip: "::"
44
+ - ip: "$IP_BINDING"
45
port: $TALK_PORT
46
transport: udp
47
48
49
transport: tcp
50
log_dir: stdout
0 commit comments