mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-18 19:41:01 -05:00
Allow sockets to retrieve their local endpoint info.
The peer_info method in the Socket vtable is replaced with endpoint_info, which takes a boolean indicating which end you're asking about. sk_peer_info still exists, as a wrapper on the new sk_endpoint_info.
This commit is contained in:
@ -123,7 +123,7 @@ static const char *sshproxy_socket_error(Socket *s)
|
||||
return sp->errmsg;
|
||||
}
|
||||
|
||||
static SocketEndpointInfo *sshproxy_peer_info(Socket *s)
|
||||
static SocketEndpointInfo *sshproxy_endpoint_info(Socket *s, bool peer)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
@ -136,7 +136,7 @@ static const SocketVtable SshProxy_sock_vt = {
|
||||
.write_eof = sshproxy_write_eof,
|
||||
.set_frozen = sshproxy_set_frozen,
|
||||
.socket_error = sshproxy_socket_error,
|
||||
.peer_info = sshproxy_peer_info,
|
||||
.endpoint_info = sshproxy_endpoint_info,
|
||||
};
|
||||
|
||||
static void sshproxy_eventlog(LogPolicy *lp, const char *event)
|
||||
|
Reference in New Issue
Block a user