summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorLogan Dethrow <log@lindenlab.com>2011-06-21 17:09:12 -0400
committerLogan Dethrow <log@lindenlab.com>2011-06-21 17:09:12 -0400
commit20100ba38c6d3fa16ab11be2ed326ab0964c4c21 (patch)
tree6f249a693990463fc7e057f29a106db6e20bb691 /indra/newview
parent6ce2c20a06e32825f4e4260575059a9867510ecd (diff)
Refactored SOCKS 5 handshake to use existing LLSocket class.
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llstartup.cpp6
-rw-r--r--indra/newview/llxmlrpctransaction.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp
index 6d94a5454e..c2f0ca164b 100644
--- a/indra/newview/llstartup.cpp
+++ b/indra/newview/llstartup.cpp
@@ -2770,18 +2770,18 @@ bool LLStartUp::handleSocksProxy(bool reportOK)
LLHost httpHost;
httpHost.setHostByName(gSavedSettings.getString("BrowserProxyAddress"));
httpHost.setPort(gSavedSettings.getS32("BrowserProxyPort"));
- LLSocks::getInstance()->enableHttpProxy(httpHost,LLPROXY_HTTP);
+ LLSocks::getInstance()->enableHTTPProxy(httpHost,LLPROXY_HTTP);
}
else if ((httpProxyType.compare("Socks") == 0) && gSavedSettings.getBOOL("Socks5ProxyEnabled"))
{
LLHost httpHost;
httpHost.setHostByName(gSavedSettings.getString("Socks5ProxyHost"));
httpHost.setPort(gSavedSettings.getU32("Socks5ProxyPort"));
- LLSocks::getInstance()->enableHttpProxy(httpHost,LLPROXY_SOCKS);
+ LLSocks::getInstance()->enableHTTPProxy(httpHost,LLPROXY_SOCKS);
}
else
{
- LLSocks::getInstance()->disableHttpProxy();
+ LLSocks::getInstance()->disableHTTPProxy();
}
bool use_socks_proxy = gSavedSettings.getBOOL("Socks5ProxyEnabled");
diff --git a/indra/newview/llxmlrpctransaction.cpp b/indra/newview/llxmlrpctransaction.cpp
index 87d2f780be..b9ce7d9fae 100644
--- a/indra/newview/llxmlrpctransaction.cpp
+++ b/indra/newview/llxmlrpctransaction.cpp
@@ -309,13 +309,13 @@ void LLXMLRPCTransaction::Impl::init(XMLRPC_REQUEST request, bool useGzip)
}
mErrorCert = NULL;
- if (LLSocks::getInstance()->isHttpProxyEnabled())
+ if (LLSocks::getInstance()->isHTTPProxyEnabled())
{
std::string address = LLSocks::getInstance()->getHTTPProxy().getIPString();
U16 port = LLSocks::getInstance()->getHTTPProxy().getPort();
mCurlRequest->setoptString(CURLOPT_PROXY, address.c_str());
mCurlRequest->setopt(CURLOPT_PROXYPORT, port);
- if (LLSocks::getInstance()->getHttpProxyType() == LLPROXY_SOCKS)
+ if (LLSocks::getInstance()->getHTTPProxyType() == LLPROXY_SOCKS)
{
mCurlRequest->setopt(CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
if(LLSocks::getInstance()->getSelectedAuthMethod()==METHOD_PASSWORD)