ICE candidates gathering not working if `getifaddrs` fails.
Hello.
I'm trying implement some application based on GStreamer's webrtcbin
and libnice
as dependency. All works fine until I wrap application to snap package and try run it on Raspberry Pi 3 with Debian Buster based Raspbian. It just don't start gather Ice candidates. On the same time the same snap works fine on amd64 Ubuntu 19.10. Also the same snap works fine if I try run it with --devmode
(i.e. with disabled all restrictions) on Raspbian, so it's definitely some permission issue.
Further investigations route me to call getifaddrs
inside libnice. It just fails in strict mode. So I've tried disable getifaddrs
use by removing HAVE_GETIFADDRS
define in configure.ac
- and after that it starts work fine.
So I see following solutions:
- Add configure option to disable use
getifaddrs
- If
getifaddrs
is enabled, but it call fail, do fallback to other way get info about available interfaces and IPs.
Will be glad to hear any thought about this issue.
Thanks in advance!