mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 21:12:47 -05:00
FdSocket, HandleSocket: store a notional peer address.
In the case where these socket types are constructed because of a local proxy command, we do actually have a SockAddr representing the logical host we were trying to make a connection to. So we might as well store it in the socket implementation, and then we can include it in the PLUGLOG_CONNECT_SUCCESS call to make the log message more informative.
This commit is contained in:
@ -98,8 +98,5 @@ Socket *platform_new_connection(SockAddr *addr, const char *hostname,
|
||||
inerrfd = -1;
|
||||
}
|
||||
|
||||
/* We are responsible for this and don't need it any more */
|
||||
sk_addr_free(addr);
|
||||
|
||||
return make_fd_socket(infd, outfd, inerrfd, plug);
|
||||
return make_fd_socket(infd, outfd, inerrfd, addr, port, plug);
|
||||
}
|
||||
|
Reference in New Issue
Block a user