Skip to content
Snippets Groups Projects
Commit 079a19d9 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Include client IP address in UDP "created client socket" debug log msg

Fix issue #919
parent 273e9a09
No related branches found
No related tags found
No related merge requests found
Pipeline #8909 passed
......@@ -2299,8 +2299,9 @@ void services_thread(void* arg)
continue;
}
lprintf(LOG_DEBUG, "%04d %s created client socket: %d"
, service[i].set->socks[j].sock, service[i].protocol, client_socket);
inet_addrtop(&client_addr, host_ip, sizeof(host_ip));
lprintf(LOG_DEBUG, "%04d %s [%s] created client socket: %d"
, service[i].set->socks[j].sock, service[i].protocol, host_ip, client_socket);
/* We need to set the REUSE ADDRESS socket option */
optval = true;
......@@ -2370,8 +2371,8 @@ void services_thread(void* arg)
}
if (startup->socket_open != NULL) /* Callback, increments socket counter */
startup->socket_open(startup->cbdata, true);
inet_addrtop(&client_addr, host_ip, sizeof(host_ip));
}
inet_addrtop(&client_addr, host_ip, sizeof(host_ip));
if (trashcan(&scfg, host_ip, "ip-silent")) {
FREE_AND_NULL(udp_buf);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment