meetecho / janus-gateway

Janus WebRTC Server
https://janus.conf.meetecho.com
GNU General Public License v3.0
8.25k stars 2.48k forks source link

Don't create IPv6 sockets if IPv6 is completely disabled (see #3159) #3179

Closed lminiero closed 1 year ago

lminiero commented 1 year ago

As explained in #3159, the change we made there to switch to getaddrinfo caused the involved plugins to break on machines where IPv6 is entirely disabled (and not just not present). See this post on Discourse for context. This PR applies the same fix we added in #2916 for forwarders to the sockets we changed in SIP/NoSIP/AudioBridge.

Please test and provide feedback, as I have no way to test this myself (I don't have IPv6 on my machine but it's not disabled).

lminiero commented 1 year ago

Merging.