Skip to content

Commit

Permalink
proxy_getaddrinfo(): debug: print hints->ai_flags
Browse files Browse the repository at this point in the history
  • Loading branch information
rofl0r committed Feb 5, 2021
1 parent 181cc0f commit 918855d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 918855d

Please sign in to comment.