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
+12
View File
@@ -395,6 +395,18 @@ FORCEINLINE void secure_zero_memory(T& value)
secure_zero_memory(&value, sizeof(T));
}
FORCEINLINE std::string tolower(const std::string& s)
{
std::string result;
result.reserve(s.size() + 1);
for (char c : s) {
result.push_back(static_cast<char>(std::tolower(c)));
}
return result;
}
std::string to_onion_v3(const hash& pubkey);
hash from_onion_v3(const std::string& address);