1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-25 01:02:24 +00:00

Apparently some SSH servers object to our claiming port-forwarded connections

to be from IP "client-side-connection". Claiming "0.0.0.0" instead seems to
work. Spotted by Brant Thomsen.

[originally from svn r6477]
[this svn revision also touched putty-wishlist]
This commit is contained in:
Jacob Nevins 2005-12-07 18:01:40 +00:00
parent 8a785bd34d
commit 5d5abbf8d4

5
ssh.c
View File

@ -8690,8 +8690,11 @@ void ssh_send_port_open(void *channel, char *hostname, int port, char *org)
* too much hassle to keep track, and partly I'm not
* convinced the server should be told details like that
* about my local network configuration.
* The "originator IP address" is syntactically a numeric
* IP address, and some servers (e.g., Tectia) get upset
* if it doesn't match this syntax.
*/
ssh2_pkt_addstring(pktout, "client-side-connection");
ssh2_pkt_addstring(pktout, "0.0.0.0");
ssh2_pkt_adduint32(pktout, 0);
ssh2_pkt_send(ssh, pktout);
}