diff options
author | rofl0r <rofl0r@users.noreply.github.com> | 2021-02-05 04:50:39 +0300 |
---|---|---|
committer | rofl0r <rofl0r@users.noreply.github.com> | 2021-02-05 04:50:39 +0300 |
commit | 918855deed4684eccc93a95c82fec840569fb334 (patch) | |
tree | cd6f8099c98e864e40c7cb586157f9ba16c61be1 | |
parent | 181cc0f4142467ebe81d2e3636f760687ce4caca (diff) |
proxy_getaddrinfo(): debug: print hints->ai_flags
-rw-r--r-- | src/core.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -964,9 +964,10 @@ int proxy_getaddrinfo(const char *node, const char *service, const struct addrin struct addrinfo *p; char buf[1024]; int port, af = AF_INET; - PFUNC(); -// printf("proxy_getaddrinfo node %s service %s\n",node,service); + PDEBUG("proxy_getaddrinfo node:%s service: %s, flags: %d\n", + node?node:"",service?service:"",hints?(int)hints->ai_flags:0); + space = calloc(1, sizeof(struct addrinfo_data)); if(!space) goto err1; |