From: jacob Date: Wed, 7 Dec 2005 18:01:40 +0000 (+0000) Subject: Apparently some SSH servers object to our claiming port-forwarded connections X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/commitdiff_plain/1f182589dea0018df41309c9a122737ee317bfe3 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. git-svn-id: svn://svn.tartarus.org/sgt/putty@6477 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/ssh.c b/ssh.c index 3d23aa09..7e183880 100644 --- a/ssh.c +++ b/ssh.c @@ -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); }