summarylogtreecommitdiffstats
path: root/jwhois.patch
blob: 34acd63940a3c0e591cfe95474104ec8e302750b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- src/dns.c~  2007-06-25 23:58:38.000000000 -0700
+++ src/dns.c   2016-06-04 16:20:19.644865127 -0700
@@ -113,12 +113,13 @@
 lookup_host_addrinfo(struct addrinfo **res, const char *host, int port)
 {
   struct addrinfo hints;
-  char ascport[10] = "whois";
+  char ascport[10] = "nicname";
   int error;

   memset(&hints, 0, sizeof(hints));
   hints.ai_family = PF_UNSPEC;

+  hints.ai_flags = AI_ADDRCONFIG;
   hints.ai_socktype = SOCK_STREAM;
   if (port)
     sprintf(ascport, "%9.9d", port);