Hi all. I have an interesting situation, but I don't understand if this is a bug or if this is how it should be.
Janus is running with a very basic configuration to run on a local network on a separate server. Some JS code is written that allows me to watch the stream. When I go to my page, where is janus.js tries to establish a webrtc connection, I do it using the IPv4 address in the URL, and everything works.
If I use Firefox and enter a hostname on the local network, it resolves to an IPv6 link-local address. At the same time, Firefox tries to establish connections ONLY over IPv6 (I see the list of ICE candidates in about:webrtc), while Janus offers only IPv4.
OK, I enable the ipv6 option in Janus (and also in js), but despite the message in the log that this is now enabled, Janus does not offer IPv6 candidates. If I add the parameter ice_enforce_list=eth0 (this interface has both IPv4 and IPv6 link-local), this doesn't work either. However, if I add the ice_enforce_list = <ipv6addr> parameter, then everything starts working fine: Janus offers both IPv4 and IPv6.
My questions:
1. Does Firefox behave correctly by offering only IPv6 candidates? Is this a bug or a feature? I believe that the feature.
2. Does Janus really only take the first address from the network interface and no more?
3. If this is how it should be, do I really need to constantly use ice_enforce_list to determine the list of addresses that can be connected to?