Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115637
D8368.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
D8368.diff
View Options
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
Details
Attached
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)
Attached To
D8368: torcontrol: Use the default/standard network port for Tor hidden services, even if the internal port is set differently
Event Timeline
Log In to Comment