mirror of
https://github.com/feather-wallet/feather.git
synced 2024-12-22 11:39:25 +00:00
TorManager: check for Tor bin in applicationDirPath
This commit is contained in:
parent
7e89310386
commit
2179c073cd
1 changed files with 6 additions and 0 deletions
|
@ -72,6 +72,12 @@ void TorManager::start() {
|
|||
return;
|
||||
}
|
||||
|
||||
QFile torFile{this->torPath};
|
||||
QString alternativeTorFile = QCoreApplication::applicationDirPath() + "/tor";
|
||||
if (!torFile.exists() && QFileInfo(alternativeTorFile).isFile()) {
|
||||
this->torPath = alternativeTorFile;
|
||||
}
|
||||
|
||||
qDebug() << QString("Start process: %1").arg(this->torPath);
|
||||
|
||||
m_restarts += 1;
|
||||
|
|
Loading…
Reference in a new issue