Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 17 lines 503 B view raw
1--- a/src/dns.c 2007-06-25 23:58:38.000000000 -0700 2+++ b/src/dns.c 2016-06-04 16:20:19.644865127 -0700 3@@ -113,12 +113,13 @@ 4 lookup_host_addrinfo(struct addrinfo **res, const char *host, int port) 5 { 6 struct addrinfo hints; 7- char ascport[10] = "whois"; 8+ char ascport[10] = "nicname"; 9 int error; 10 11 memset(&hints, 0, sizeof(hints)); 12 hints.ai_family = PF_UNSPEC; 13 14+ hints.ai_flags = AI_ADDRCONFIG; 15 hints.ai_socktype = SOCK_STREAM; 16 if (port) 17 sprintf(ascport, "%9.9d", port);