diff options
author | Stefan Becker <chemobejk@gmail.com> | 2019-06-26 11:08:37 +0300 |
---|---|---|
committer | Stefan Becker <chemobejk@gmail.com> | 2019-06-26 11:12:40 +0300 |
commit | 9c93234be8c3e4ed612453b27bfd6615cbc748ad (patch) | |
tree | a7092ece532a5f7098fef48868b1d55e1fadad3d /agent | |
parent | 3eab4bc45625b92878cceed8f0d33132655f9921 (diff) | |
download | libnice-9c93234be8c3e4ed612453b27bfd6615cbc748ad.tar.gz |
interfaces: add missing support for IGNORED_IFACE_PREFIX
This fixes commit b4abda09c79e4ce372a3771300abf568c85c7ff5
Copy the implementation to the !HAVE_GETIFADDRS branch too.
Diffstat (limited to 'agent')
-rw-r--r-- | agent/interfaces.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/agent/interfaces.c b/agent/interfaces.c index b0bb0e3..0dc4b0d 100644 --- a/agent/interfaces.c +++ b/agent/interfaces.c @@ -358,6 +358,11 @@ nice_interfaces_get_local_ips (gboolean include_loopback) loopbacks = add_ip_to_list (loopbacks, g_strdup (inet_ntoa (sa->sin_addr)), TRUE); else nice_debug ("Ignoring loopback interface"); +#ifdef IGNORED_IFACE_PREFIX + } else if (g_str_has_prefix (ifr->ifr_name, IGNORED_IFACE_PREFIX)) { + nice_debug ("Ignoring interface %s as it matches prefix %s", + ifr->ifr_name, IGNORED_IFACE_PREFIX); +#endif } else { if (nice_interfaces_is_private_ip ((struct sockaddr *) sa)) { ips = add_ip_to_list (ips, g_strdup (inet_ntoa (sa->sin_addr)), TRUE); |