diff options
| author | Logan Dethrow <log@lindenlab.com> | 2011-07-19 14:20:21 -0400 | 
|---|---|---|
| committer | Logan Dethrow <log@lindenlab.com> | 2011-07-19 14:20:21 -0400 | 
| commit | 792667ff8ef13e16823d96b490ea9a4f498425ea (patch) | |
| tree | 693b9a2b4eb64fe73c91e9fc8bc67d66e0be0f3b /indra/newview | |
| parent | cb24dff9e36a963af280be1aead9424be8a678b6 (diff) | |
STORM-1112 Added LLProxy::applyProxySettings() to apply proxy settings to curl handles.
Added call to that function everywhere curl handles are created in the viewer.
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llxmlrpctransaction.cpp | 20 | 
1 files changed, 1 insertions, 19 deletions
| diff --git a/indra/newview/llxmlrpctransaction.cpp b/indra/newview/llxmlrpctransaction.cpp index c88e829527..fe5ceea81d 100644 --- a/indra/newview/llxmlrpctransaction.cpp +++ b/indra/newview/llxmlrpctransaction.cpp @@ -309,25 +309,7 @@ void LLXMLRPCTransaction::Impl::init(XMLRPC_REQUEST request, bool useGzip)  	}  	mErrorCert = NULL; -	if (LLProxy::getInstance()->isHTTPProxyEnabled()) -	{ -		std::string address = LLProxy::getInstance()->getHTTPProxy().getIPString(); -		U16 port = LLProxy::getInstance()->getHTTPProxy().getPort(); -		mCurlRequest->setoptString(CURLOPT_PROXY, address.c_str()); -		mCurlRequest->setopt(CURLOPT_PROXYPORT, port); -		if (LLProxy::getInstance()->getHTTPProxyType() == LLPROXY_SOCKS) -		{ -			mCurlRequest->setopt(CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5); -			if (LLProxy::getInstance()->getSelectedAuthMethod()==METHOD_PASSWORD) -			{ -				mCurlRequest->setoptString(CURLOPT_PROXYUSERPWD,LLProxy::getInstance()->getProxyUserPwdCURL()); -			} -		} -		else -		{ -			mCurlRequest->setopt(CURLOPT_PROXYTYPE, CURLPROXY_HTTP); -		} -	} +	LLProxy::getInstance()->applyProxySettings(mCurlRequest);  //	mCurlRequest->setopt(CURLOPT_VERBOSE, 1); // useful for debugging  	mCurlRequest->setopt(CURLOPT_NOSIGNAL, 1); | 
