From cadd08f36a383aa03d9789e709155b5016d41df4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 6 Jan 2008 12:54:16 +0000 Subject: make sure CURLPROXY_SOCKS5_HOSTNAME is taken care of as well --- lib/url.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index 550cb2113..8e2405373 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2636,8 +2636,10 @@ static CURLcode ConnectPlease(struct SessionHandle *data, switch(data->set.proxytype) { case CURLPROXY_SOCKS5: - result = Curl_SOCKS5(conn->proxyuser, conn->proxypasswd, conn->host.name, - conn->remote_port, FIRSTSOCKET, conn); + case CURLPROXY_SOCKS5_HOSTNAME: + result = Curl_SOCKS5(conn->proxyuser, conn->proxypasswd, + conn->host.name, conn->remote_port, + FIRSTSOCKET, conn); break; case CURLPROXY_HTTP: /* do nothing here. handled later. */ -- cgit v1.2.3