From 83969876a9b171f1b7a958eb36348af125a1e99d Mon Sep 17 00:00:00 2001 From: roy Date: Mon, 12 Oct 2015 09:28:15 +0000 Subject: [PATCH] Ignore loopback interfaces --- external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c b/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c index 59fb4a00991c..2269eb6cc8d3 100755 --- a/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c +++ b/external/apache2/mDNSResponder/dist/mDNSPosix/mDNSUNP.c @@ -277,6 +277,8 @@ struct ifi_info *get_ifi_info(int family, int doaliases) flags = ifrcopy.ifr_flags; if ((flags & IFF_UP) == 0) continue; /* ignore if interface not up */ + if ((flags & IFF_LOOPBACK)) + continue; /* ignore loopback interfaces */ /* Skip addresses we can't use */ #ifdef SIOCGIFAFLAG_IN