git://developer.intra2net.com
/
bpdyndnsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4eb8766
)
CURLOPT_PROXY is avaiting a NULL terminated C string (char *), so we have to give...
author
Bjoern Sikora
<bjoern.sikora@intra2net.com>
Wed, 26 Aug 2009 08:25:51 +0000 (10:25 +0200)
committer
Bjoern Sikora
<bjoern.sikora@intra2net.com>
Wed, 26 Aug 2009 08:25:51 +0000 (10:25 +0200)
src/iphelper.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/iphelper.cpp
b/src/iphelper.cpp
index
7dd8e01
..
4fac2d0
100644
(file)
--- a/
src/iphelper.cpp
+++ b/
src/iphelper.cpp
@@
-271,7
+271,7
@@
CURL * IPHelper::init_curl(string& curl_writedata_buff,char* curl_err_buff) cons
if ( !Proxy.empty() )
{
- curl_easy_setopt(curl_easy_handle,CURLOPT_PROXY,Proxy);
+ curl_easy_setopt(curl_easy_handle,CURLOPT_PROXY,Proxy.c_str());
curl_easy_setopt(curl_easy_handle,CURLOPT_PROXYPORT,ProxyPort);
}