mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 04:52:47 -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:
@ -88,7 +88,8 @@ mainchan *mainchan_new(
|
||||
const char *host = conf_get_str(mc->conf, CONF_ssh_nc_host);
|
||||
int port = conf_get_int(mc->conf, CONF_ssh_nc_port);
|
||||
|
||||
mc->sc = ssh_lportfwd_open(cl, host, port, "main channel", &mc->chan);
|
||||
mc->sc = ssh_lportfwd_open(cl, host, port, "main channel",
|
||||
NULL, &mc->chan);
|
||||
mc->type = MAINCHAN_DIRECT_TCPIP;
|
||||
} else {
|
||||
mc->sc = ssh_session_open(cl, &mc->chan);
|
||||
|
Reference in New Issue
Block a user