Page MenuHomePhabricator

D8368.diff
No OneTemporary

D8368.diff

diff --git a/src/torcontrol.cpp b/src/torcontrol.cpp
--- a/src/torcontrol.cpp
+++ b/src/torcontrol.cpp
@@ -3,6 +3,7 @@
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
+#include <chainparams.h>
#include <torcontrol.h>
#include <crypto/hmac_sha256.h>
@@ -562,7 +563,7 @@
return;
}
service = LookupNumeric(std::string(service_id + ".onion").c_str(),
- GetListenPort());
+ Params().GetDefaultPort());
LogPrintf("tor: Got service ID %s, advertising service %s\n",
service_id, service.ToString());
if (WriteBinaryFile(GetPrivateKeyFile(), private_key)) {
@@ -607,7 +608,8 @@
// internal port, but this is just a convenient choice. TODO; refactor
// the shutdown sequence some day.
_conn.Command(strprintf("ADD_ONION %s Port=%i,127.0.0.1:%i",
- private_key, GetListenPort(), GetListenPort()),
+ private_key, Params().GetDefaultPort(),
+ GetListenPort()),
std::bind(&TorController::add_onion_cb, this,
std::placeholders::_1, std::placeholders::_2));
} else {

File Metadata

Mime Type
text/plain
Expires
Sat, Mar 1, 11:37 (2 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187644
Default Alt Text
D8368.diff (1 KB)

Event Timeline