From: Bjoern Sikora Date: Wed, 26 Aug 2009 08:25:51 +0000 (+0200) Subject: CURLOPT_PROXY is avaiting a NULL terminated C string (char *), so we have to give... X-Git-Tag: v1.1~214 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=c93d5480da6c886ceb7515887f0c701168f13a42;p=bpdyndnsd CURLOPT_PROXY is avaiting a NULL terminated C string (char *), so we have to give it in the old-fashioned way. --- diff --git a/src/iphelper.cpp b/src/iphelper.cpp index 7dd8e01..4fac2d0 100644 --- 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); }