diff options
author | MacroFake <falke.marco@gmail.com> | 2022-05-05 08:28:29 +0200 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-05-05 20:50:24 +0200 |
commit | fa2deae2a86417d7e0d4cd33fb933b1000d20313 (patch) | |
tree | 949c81b62fd5399d478a28dcf0701f8d52ef2d96 /src/torcontrol.cpp | |
parent | c367736f85ac7f63a63cbfa0bcc05a42277f04bc (diff) | |
download | bitcoin-fa2deae2a86417d7e0d4cd33fb933b1000d20313.tar.xz |
Wrap boost::replace_all
Diffstat (limited to 'src/torcontrol.cpp')
-rw-r--r-- | src/torcontrol.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp index e2a7cb4066..05dbc6057f 100644 --- a/src/torcontrol.cpp +++ b/src/torcontrol.cpp @@ -24,8 +24,6 @@ #include <set> #include <vector> -#include <boost/algorithm/string/replace.hpp> - #include <event2/buffer.h> #include <event2/bufferevent.h> #include <event2/event.h> @@ -566,7 +564,7 @@ void TorController::protocolinfo_cb(TorControlConnection& _conn, const TorContro if (!torpassword.empty()) { if (methods.count("HASHEDPASSWORD")) { LogPrint(BCLog::TOR, "tor: Using HASHEDPASSWORD authentication\n"); - boost::replace_all(torpassword, "\"", "\\\""); + ReplaceAll(torpassword, "\"", "\\\""); _conn.Command("AUTHENTICATE \"" + torpassword + "\"", std::bind(&TorController::auth_cb, this, std::placeholders::_1, std::placeholders::_2)); } else { LogPrintf("tor: Password provided with -torpassword, but HASHEDPASSWORD authentication is not available\n"); |