From 84f04e3651b0437ec38471b4b2acf589a9c73db9 Mon Sep 17 00:00:00 2001 From: Eleanor McMurtry Date: Thu, 27 Jun 2019 22:41:23 +1000 Subject: [PATCH] Update to use Tor hidden services 3: via github user kradan (#575) --- src/tor/TorControl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tor/TorControl.cpp b/src/tor/TorControl.cpp index d5a70912a..e4c81fa1b 100644 --- a/src/tor/TorControl.cpp +++ b/src/tor/TorControl.cpp @@ -522,6 +522,10 @@ void TorControlPrivate::publishServices() .arg(tit->targetAddress.toString()) .arg(tit->targetPort); torConfig.append(qMakePair(QByteArray("HiddenServicePort"), target.toLatin1())); + + // Via github user @kradan: https://github.com/kradan/ricochet/commit/a34e8123b382b6e4ec490c633141510f26ff11dd + QString version = QString::fromLatin1("3"); + torConfig.append(qMakePair(QByteArray("HiddenServiceVersion"), version.toLatin1())); } QObject::connect(command, &SetConfCommand::setConfSucceeded, service, &HiddenService::servicePublished);