diff options
| author | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-13 14:09:58 -0300 |
|---|---|---|
| committer | Nsable-sh <nsable-sh@noreply.git.bitflash.network> | 2026-08-13 14:09:58 -0300 |
| commit | 1bf78c53404d83638177889590ce199c87af63bc (patch) | |
| tree | e06544e9e7516203bc4309460438a0486b0328e4 /src/selftest.cpp | |
| parent | 20243de8fcf6dc30d7f0b1dbbc2f9db22683ae24 (diff) | |
net: stop managed Tor through control port
Diffstat (limited to 'src/selftest.cpp')
| -rw-r--r-- | src/selftest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/selftest.cpp b/src/selftest.cpp index 4cb872e..3c93927 100644 --- a/src/selftest.cpp +++ b/src/selftest.cpp | |||
| @@ -1573,11 +1573,14 @@ static int RunManagedTorSelfTest() | |||
| 1573 | 1573 | ||
| 1574 | std::string torrc = BtfBuildManagedTorrcForTest("C:/Bitflash Managed Tor/data", | 1574 | std::string torrc = BtfBuildManagedTorrcForTest("C:/Bitflash Managed Tor/data", |
| 1575 | "C:/Bitflash Managed Tor/onion-service", | 1575 | "C:/Bitflash Managed Tor/onion-service", |
| 1576 | 19050, 8433); | 1576 | 19050, 19051, 8433); |
| 1577 | nFail += Check(torrc.find("DataDirectory \"C:/Bitflash Managed Tor/data\"") != std::string::npos, | 1577 | nFail += Check(torrc.find("DataDirectory \"C:/Bitflash Managed Tor/data\"") != std::string::npos, |
| 1578 | "quotes the Tor data directory") ? 0 : 1; | 1578 | "quotes the Tor data directory") ? 0 : 1; |
| 1579 | nFail += Check(torrc.find("SocksPort 127.0.0.1:19050") != std::string::npos, | 1579 | nFail += Check(torrc.find("SocksPort 127.0.0.1:19050") != std::string::npos, |
| 1580 | "binds SOCKS5 to localhost only") ? 0 : 1; | 1580 | "binds SOCKS5 to localhost only") ? 0 : 1; |
| 1581 | nFail += Check(torrc.find("ControlPort 127.0.0.1:19051") != std::string::npos && | ||
| 1582 | torrc.find("CookieAuthentication 1") != std::string::npos, | ||
| 1583 | "binds an authenticated Tor control port to localhost only") ? 0 : 1; | ||
| 1581 | nFail += Check(torrc.find("IsolateSOCKSAuth") != std::string::npos && | 1584 | nFail += Check(torrc.find("IsolateSOCKSAuth") != std::string::npos && |
| 1582 | torrc.find("IsolateClientAddr") != std::string::npos && | 1585 | torrc.find("IsolateClientAddr") != std::string::npos && |
| 1583 | torrc.find("IsolateDestAddr") != std::string::npos && | 1586 | torrc.find("IsolateDestAddr") != std::string::npos && |