summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/llmessage/llurlrequest.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llmessage/llurlrequest.cpp b/indra/llmessage/llurlrequest.cpp
index db67fbeea7..b5b45c557e 100644
--- a/indra/llmessage/llurlrequest.cpp
+++ b/indra/llmessage/llurlrequest.cpp
@@ -64,6 +64,7 @@ public:
LLURLRequestDetail();
~LLURLRequestDetail();
std::string mURL;
+ std::string mProxy;
LLCurlEasyRequest* mCurlRequest;
LLBufferArray* mResponseBuffer;
LLChannelDescriptors mChannels;
@@ -194,7 +195,11 @@ void LLURLRequest::useProxy(bool use_proxy)
void LLURLRequest::useProxy(const std::string &proxy)
{
- curl_easy_setopt(mDetail->mCurlRequest, CURLOPT_PROXY, proxy.c_str());
+ mDetail->mProxy = proxy;
+ curl_easy_setopt(
+ mDetail->mCurlRequest,
+ CURLOPT_PROXY,
+ mDetail->mProxy.c_str());
}
// virtual