nginx-rtmp-module
nginx-rtmp-module copied to clipboard
ipv6 support
Does nginx-rtmp-module support connections over ipv6?
tl;dr: use listen [::]:1935;
Using listen 1935; as shown in the examples, seems to only listen to ipv4.
From the listen directive syntax documentation, I expected this to listen on ipv4 AND ipv6. It does not.
Only when specifying an ipv6 address like listen [::]:1935;, it listens for both.
Side note: To only listening on v6 try listen [::]:1935 ipv6only=on;, because listen 1935 ipv6only=on; will only listen for ipv6.
From the documentation:
syntax:
listen (addr[:port]|port|unix:path) [bind] [ipv6only=on|off] [so_keepalive=on|off|keepidle:keepintvl:keepcnt|proxy_protocol]