Commit 9c93234b authored by Stefan Becker's avatar Stefan Becker
Browse files

interfaces: add missing support for IGNORED_IFACE_PREFIX

This fixes commit b4abda09

Copy the implementation to the !HAVE_GETIFADDRS branch too.
parent 3eab4bc4
......@@ -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);
nice_debug ("Ignoring loopback interface");
} 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);
} else {
if (nice_interfaces_is_private_ip ((struct sockaddr *) sa)) {
ips = add_ip_to_list (ips, g_strdup (inet_ntoa (sa->sin_addr)), TRUE);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment