Add HTTP & SOCKS5 proxy support (#4321)

This can be configured using the `CHATTERINO2_PROXY_URL` environment variable.
The behaviour is similar to curl's CURLOPT_PROXY
This commit is contained in:
nerix
2023-02-12 00:16:51 +01:00
committed by GitHub
parent 98c2ff5607
commit c9a9e44e1f
11 changed files with 166 additions and 0 deletions
+2
View File
@@ -1,5 +1,6 @@
#pragma once
#include <boost/optional.hpp>
#include <QString>
namespace chatterino {
@@ -16,6 +17,7 @@ public:
const QString twitchServerHost;
const uint16_t twitchServerPort;
const bool twitchServerSecure;
const boost::optional<QString> proxyUrl;
};
} // namespace chatterino