[core,listener] print info if a client is from localhost

This commit is contained in:
Armin Novak
2023-03-06 11:17:01 +01:00
committed by Martin Fleisz
parent 1c8f762721
commit 92e071fa0c

View File

@@ -330,6 +330,9 @@ BOOL freerdp_peer_set_local_and_hostname(freerdp_peer* client,
client->local = TRUE;
#endif
if (client->local)
WLog_INFO(TAG, "Accepting client from localhost");
if (sin_addr)
inet_ntop(peer_addr->ss_family, sin_addr, client->hostname, sizeof(client->hostname));