Skip to content

Commit

Permalink
create v3 onion service (Fixes ricochet-im#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
kradan committed Jul 16, 2018
1 parent a22c729 commit a34e812
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tor/TorControl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,8 @@ void TorControlPrivate::publishServices()
.arg(tit->targetAddress.toString())
.arg(tit->targetPort);
torConfig.append(qMakePair(QByteArray("HiddenServicePort"), target.toLatin1()));
QString version = QString::fromLatin1("3");
torConfig.append(qMakePair(QByteArray("HiddenServiceVersion"), version.toLatin1()));
}

QObject::connect(command, &SetConfCommand::setConfSucceeded, service, &HiddenService::servicePublished);
Expand Down

0 comments on commit a34e812

Please sign in to comment.