summarylogtreecommitdiffstats
path: root/ftnnode.patch
blob: 891734d5190757d17a7ff684d84be015e7a0476f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- a/ftnnode.c
+++ b/ftnnode.c
@@ -258,8 +258,11 @@
     if (!strcmp(host, "-"))
       continue;
 
-    aiErr = srv_getaddrinfo(host, port[0] ? port : NULL, &hints, &ai);
+    if (on->recheck < safe_time())
+    {
+    aiErr = srv_getaddrinfo(host, port[0] ? port : NULL, &hints, &ai);
     if (aiErr != 0) continue;
+    }
     freeaddrinfo(ai);
     sprintf (host+strlen(host), ":%s", port);
     i=0;
@@ -318,7 +321,7 @@
 
   /* not found or not in config file and recheck required ... */
   if (( !np || 
-        (np->listed != NL_NODE && np->recheck < safe_time())) 
+        (np->listed != NL_NODE)) 
       && config->havedefnode) 
     /* ... try resolve from defnode */
     np=get_defnode_info(fa, np, config);