summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorLogan Dethrow <log@lindenlab.com>2011-09-08 10:43:07 -0400
committerLogan Dethrow <log@lindenlab.com>2011-09-08 10:43:07 -0400
commit7d381c65969678281dba056e77ff8423ccfe186a (patch)
tree6b39e0241f100b0130b0808e7493a3c13aa417c4 /indra
parentb8fddce34d1737acf32d83dac423dbb7a948cc4a (diff)
LLProxy: Moved the enabling of the UDP proxy back into startSOCKSProxy()
Diffstat (limited to 'indra')
-rw-r--r--indra/llmessage/llproxy.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llmessage/llproxy.cpp b/indra/llmessage/llproxy.cpp
index 3ffe6d2d3b..4a7d326c0e 100644
--- a/indra/llmessage/llproxy.cpp
+++ b/indra/llmessage/llproxy.cpp
@@ -180,7 +180,6 @@ S32 LLProxy::proxyHandshake(LLHost proxy)
mUDPProxy.setAddress(proxy.getAddress());
// The connection was successful. We now have the UDP port to send requests that need forwarding to.
LL_INFOS("Proxy") << "SOCKS 5 UDP proxy connected on " << mUDPProxy << LL_ENDL;
- sUDPProxyEnabled = true;
return SOCKS_OK;
}
@@ -223,6 +222,11 @@ S32 LLProxy::startSOCKSProxy(LLHost host)
// Shut down the proxy if any of the above steps failed.
stopSOCKSProxy();
}
+ else
+ {
+ // Connection was successful.
+ sUDPProxyEnabled = true;
+ }
return status;
}