mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 03:52:49 -05:00
Improve sk_peer_info.
Previously, it returned a human-readable string suitable for log files, which tried to say something useful about the remote end of a socket. Now it returns a whole SocketPeerInfo structure, of which that human-friendly log string is just one field, but also some of the same information - remote IP address and port, in particular - is provided in machine-readable form where it's available.
This commit is contained in:
6
putty.h
6
putty.h
@ -483,7 +483,11 @@ enum {
|
||||
* host name has already been resolved or will be resolved at
|
||||
* the proxy end.
|
||||
*/
|
||||
ADDRTYPE_UNSPEC, ADDRTYPE_IPV4, ADDRTYPE_IPV6, ADDRTYPE_NAME
|
||||
ADDRTYPE_UNSPEC,
|
||||
ADDRTYPE_IPV4,
|
||||
ADDRTYPE_IPV6,
|
||||
ADDRTYPE_LOCAL, /* e.g. Unix domain socket, or Windows named pipe */
|
||||
ADDRTYPE_NAME /* SockAddr storing an unresolved host name */
|
||||
};
|
||||
|
||||
struct Backend {
|
||||
|
Reference in New Issue
Block a user