Apparently some SSH servers object to our claiming port-forwarded connections
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 7 Dec 2005 18:01:40 +0000 (18:01 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Wed, 7 Dec 2005 18:01:40 +0000 (18:01 +0000)
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

ssh.c

diff --git a/ssh.c b/ssh.c
index 3d23aa0..7e18388 100644 (file)
--- 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);
     }