Merge 65e503e8499f18e48d7801a298d9acdd6ed62d0b into 5f4422d68dc3530c353af1f87499de1c864b60ad

This commit is contained in:
Eval Exec 2025-03-17 03:51:46 +01:00 committed by GitHub
commit ad79a02ac0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -397,7 +397,11 @@ void TorController::get_socks_cb(TorControlConnection& _conn, const TorControlRe
Assume(resolved.IsValid()); Assume(resolved.IsValid());
LogDebug(BCLog::TOR, "Configuring onion proxy for %s\n", resolved.ToStringAddrPort()); LogDebug(BCLog::TOR, "Configuring onion proxy for %s\n", resolved.ToStringAddrPort());
Proxy addrOnion = Proxy(resolved, true);
// With m_randomize_credentials = true, generates unique SOCKS credentials per proxy connection (e.g., Tor).
// Prevents connection correlation and enhances privacy by forcing different Tor circuits.
// Requires Tor's IsolateSOCKSAuth (default enabled) for effective isolation (see IsolateSOCKSAuth section in https://2019.www.torproject.org/docs/tor-manual.html.en).
Proxy addrOnion = Proxy(resolved, /*_randomize_credentials*/ true);
SetProxy(NET_ONION, addrOnion); SetProxy(NET_ONION, addrOnion);
const auto onlynets = gArgs.GetArgs("-onlynet"); const auto onlynets = gArgs.GetArgs("-onlynet");