mirror of
https://git.wownero.com/wownero/wownero-puddle.git
synced 2024-08-15 01:03:20 +00:00
fix parsing client IP address
This commit is contained in:
parent
70f865798f
commit
48bcb418b0
1 changed files with 1 additions and 1 deletions
|
@ -2783,7 +2783,7 @@ client_add(int fd, struct sockaddr_storage *ss,
|
||||||
c->connected_since = time(NULL);
|
c->connected_since = time(NULL);
|
||||||
c->downstream = downstream;
|
c->downstream = downstream;
|
||||||
int rc = 0;
|
int rc = 0;
|
||||||
if ((rc = getnameinfo((struct sockaddr*)ss, sizeof(ss),
|
if ((rc = getnameinfo((struct sockaddr*)ss, sizeof(*ss),
|
||||||
c->host, MAX_HOST, NULL, 0, NI_NUMERICHOST)))
|
c->host, MAX_HOST, NULL, 0, NI_NUMERICHOST)))
|
||||||
{
|
{
|
||||||
log_error("Error getting client address: %s",
|
log_error("Error getting client address: %s",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue