Confirmed that proxies work, added debug message with proxy info.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2019-08-30 08:06:48 +02:00
parent 707771c7bf
commit 08ae30835c
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 4 deletions

View File

@ -55,8 +55,6 @@ API::http::http(const API &api, const string &instance,
{
Poco::Net::initializeSSL();
// FIXME: rewrite set_proxy() that it calls set_proxy() here.
try
{
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)
{
// TODO: Test proxy.
try
{
HTTPSClientSession::ProxyConfig proxyconfig;
@ -127,6 +123,7 @@ void API::http::set_proxy(const string &hostport, const string &userpw)
}
HTTPSClientSession::setGlobalProxyConfig(proxyconfig);
ttdebug << "Set proxy to " << hostport << ".\n";
}
catch (const std::exception &e)
{