Confirmed that proxies work, added debug message with proxy info.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
707771c7bf
commit
08ae30835c
|
@ -55,8 +55,6 @@ API::http::http(const API &api, const string &instance,
|
||||||
{
|
{
|
||||||
Poco::Net::initializeSSL();
|
Poco::Net::initializeSSL();
|
||||||
|
|
||||||
// FIXME: rewrite set_proxy() that it calls set_proxy() here.
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string env_proxy = Environment::get("http_proxy");
|
string env_proxy = Environment::get("http_proxy");
|
||||||
|
@ -97,8 +95,6 @@ API::http::~http()
|
||||||
|
|
||||||
void API::http::set_proxy(const string &hostport, const string &userpw)
|
void API::http::set_proxy(const string &hostport, const string &userpw)
|
||||||
{
|
{
|
||||||
// TODO: Test proxy.
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
HTTPSClientSession::ProxyConfig proxyconfig;
|
HTTPSClientSession::ProxyConfig proxyconfig;
|
||||||
|
@ -127,6 +123,7 @@ void API::http::set_proxy(const string &hostport, const string &userpw)
|
||||||
}
|
}
|
||||||
|
|
||||||
HTTPSClientSession::setGlobalProxyConfig(proxyconfig);
|
HTTPSClientSession::setGlobalProxyConfig(proxyconfig);
|
||||||
|
ttdebug << "Set proxy to " << hostport << ".\n";
|
||||||
}
|
}
|
||||||
catch (const std::exception &e)
|
catch (const std::exception &e)
|
||||||
{
|
{
|
||||||
|
|
Reference in New Issue