Added SOCKS5 proxy type command line parameter

- Auto-detect by default, based on the port number
- Don't run TOR-specific code if it's not the TOR proxy
This commit is contained in:
SChernykh
2026-02-10 21:15:30 +01:00
parent cf1c88b907
commit 6d6c12c1e8
13 changed files with 99 additions and 21 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ static constexpr int DEFAULT_BACKLOG = 1;
namespace p2pool {
ConsoleCommands::ConsoleCommands(p2pool* pool)
: TCPServer(DEFAULT_BACKLOG, ConsoleClient::allocate, std::string())
: TCPServer(DEFAULT_BACKLOG, ConsoleClient::allocate, std::string(), Params::ProxyType::INVALID)
, m_pool(pool)
, m_tty{}
, m_stdin_pipe{}