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) ...@@ -2299,8 +2299,9 @@ void services_thread(void* arg)
continue; continue;
} }
lprintf(LOG_DEBUG, "%04d %s created client socket: %d" inet_addrtop(&client_addr, host_ip, sizeof(host_ip));
, service[i].set->socks[j].sock, service[i].protocol, client_socket); 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 */ /* We need to set the REUSE ADDRESS socket option */
optval = true; optval = true;
...@@ -2370,8 +2371,8 @@ void services_thread(void* arg) ...@@ -2370,8 +2371,8 @@ void services_thread(void* arg)
} }
if (startup->socket_open != NULL) /* Callback, increments socket counter */ if (startup->socket_open != NULL) /* Callback, increments socket counter */
startup->socket_open(startup->cbdata, true); 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")) { if (trashcan(&scfg, host_ip, "ip-silent")) {
FREE_AND_NULL(udp_buf); 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