Justin Bradford's proxy support patch. Currently supports only HTTP
[u/mdw/putty] / raw.c
diff --git a/raw.c b/raw.c
index 0d27bb7..58b060c 100644 (file)
--- a/raw.c
+++ b/raw.c
@@ -92,7 +92,7 @@ static char *raw_init(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)))
        return err;