From c93d5480da6c886ceb7515887f0c701168f13a42 Mon Sep 17 00:00:00 2001 From: Bjoern Sikora Date: Wed, 26 Aug 2009 10:25:51 +0200 Subject: [PATCH] CURLOPT_PROXY is avaiting a NULL terminated C string (char *), so we have to give it in the old-fashioned way. --- src/iphelper.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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); } -- 1.7.1