mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[core,listener] print info if a client is from localhost
This commit is contained in:
committed by
Martin Fleisz
parent
1c8f762721
commit
92e071fa0c
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user