]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Apparently some SSH servers object to our claiming port-forwarded connections
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 7 Dec 2005 18:01:40 +0000 (18:01 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
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.

[originally from svn r6477]
[this svn revision also touched putty-wishlist]

ssh.c

diff --git a/ssh.c b/ssh.c
index 3d23aa0918613cdfd6d3184bb9acad32d113d222..7e183880bcbb16a7d9756c0755bea738c0c437cc 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);
     }