From 0a5ebbcc9dfee8dc82e391fce08792ab9f6f9151 Mon Sep 17 00:00:00 2001 From: Ramakrishnan Muthukrishnan Date: Fri, 23 Dec 2022 15:33:48 +0530 Subject: [PATCH] put back non-localhost based discovery --- old_discovery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/old_discovery.c b/old_discovery.c index 75aa6f8..cb12be0 100644 --- a/old_discovery.c +++ b/old_discovery.c @@ -378,8 +378,8 @@ fprintf(stderr,"old_discovery\n"); g_main_context_iteration(NULL, 0); if (ifa->ifa_addr && ifa->ifa_addr->sa_family == AF_INET) { if((ifa->ifa_flags&IFF_UP)==IFF_UP - && (ifa->ifa_flags&IFF_RUNNING)==IFF_RUNNING - && (ifa->ifa_flags&IFF_LOOPBACK)==IFF_LOOPBACK) { + && (ifa->ifa_flags&IFF_RUNNING)==IFF_RUNNING) { + // && (ifa->ifa_flags&IFF_LOOPBACK)==IFF_LOOPBACK) { discover(ifa); } } @@ -388,7 +388,7 @@ fprintf(stderr,"old_discovery\n"); freeifaddrs(addrs); // Do one additional "discover" for a fixed TCP address - // discover(NULL); + discover(NULL); fprintf(stderr, "discovery found %d devices\n",devices); -- 2.45.2