net: Rename _randomize_credentials Proxy parameter to tor_stream_isolation

Rename the `_randomize_credentials` parameter to Proxy's constructor to
`tor_stream_isolation` to make it more clear, and more specific what its
purpose is.

Also change all call sites to use a named parameter.
This commit is contained in:
laanwj
2025-03-31 16:18:07 +02:00
parent 1a6fc04d81
commit c47f81e8ac
6 changed files with 12 additions and 12 deletions

View File

@@ -738,7 +738,7 @@ std::unique_ptr<Sock> ConnectThroughProxy(const Proxy& proxy,
}
// do socks negotiation
if (proxy.m_randomize_credentials) {
if (proxy.m_tor_stream_isolation) {
ProxyCredentials random_auth;
static std::atomic_int counter(0);
random_auth.username = random_auth.password = strprintf("%i", counter++);