Use hostport, not ipport for proxied connections
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 5 Oct 2010 08:06:34 +0000 (10:06 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 5 Oct 2010 08:06:34 +0000 (10:06 +0200)
src/connection.c

index 643f1a7..c55785d 100644 (file)
@@ -432,6 +432,8 @@ static int connection_connect(struct connection *con, iochan_man_t iochan_man)
         strcat(http_hostport, host->hostport);
         ZOOM_connection_connect(link, http_hostport, 0);
     }
+    else if (zproxy && *zproxy)
+        ZOOM_connection_connect(link, host->hostport, 0);        
     else
         ZOOM_connection_connect(link, host->ipport, 0);