From: Ramakrishnan Muthukrishnan <ram@rkrishnan.org>
Date: Fri, 23 Dec 2022 10:03:48 +0000 (+0530)
Subject: put back non-localhost based discovery
X-Git-Url: https://git.rkrishnan.org/components/-?a=commitdiff_plain;h=0a5ebbcc9dfee8dc82e391fce08792ab9f6f9151;p=pihpsdr.git

put back non-localhost based discovery
---

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);