Justin Bradford's proxy support patch. Currently supports only HTTP
[u/mdw/putty] / ssh.c
diff --git a/ssh.c b/ssh.c
index 94da21d..6cc79bf 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -1872,7 +1872,7 @@ static char *connect_to_host(char *host, int port, char **realhost, int nodelay)
        sprintf(buf, "Connecting to %.100s port %d", addrbuf, port);
        logevent(buf);
     }
-    s = sk_new(addr, port, 0, 1, nodelay, &fn_table_ptr);
+    s = new_connection(addr, *realhost, port, 0, 1, nodelay, &fn_table_ptr);
     if ((err = sk_socket_error(s))) {
        s = NULL;
        return err;