diff options
author | Omar Polo <op@omarpolo.com> | 2023-06-23 21:03:29 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2023-06-23 21:03:29 +0000 |
commit | 37df23d183de23b74f8a026977b8210dc22701a6 (patch) | |
tree | 69b71962dd24b8d188ce6a7a4aed47f6c0b4aa98 /ge.c | |
parent | ab55c7815e8e749e775d95c26f0e217744949285 (diff) |
rename client->addr to raddr (remote address) and keep original length
Diffstat (limited to 'ge.c')
-rw-r--r-- | ge.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -44,11 +44,9 @@ log_request(struct client *c, char *meta, size_t l) { char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV], b[GEMINI_URL_LEN]; const char *t; - size_t len; int ec; - len = sizeof(c->addr); - ec = getnameinfo((struct sockaddr*)&c->addr, len, + ec = getnameinfo((struct sockaddr*)&c->raddr, c->raddrlen, hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), NI_NUMERICHOST | NI_NUMERICSERV); |