mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
fixed bootstrapping of Tor in retroshare-service
This commit is contained in:
parent
da86da29ff
commit
ae79261cbc
@ -35,6 +35,8 @@
|
|||||||
# include <QString> // for QString::fromStdString(...)
|
# include <QString> // for QString::fromStdString(...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <QCoreApplication>
|
||||||
|
|
||||||
#include "util/argstream.h"
|
#include "util/argstream.h"
|
||||||
#include "util/rsdebug.h"
|
#include "util/rsdebug.h"
|
||||||
#include "util/rsdir.h"
|
#include "util/rsdir.h"
|
||||||
@ -1960,6 +1962,9 @@ bool RsInit::startAutoTor()
|
|||||||
std::cerr << "(EE) Tor hidden service cannot be started: " << error_msg << std::endl;
|
std::cerr << "(EE) Tor hidden service cannot be started: " << error_msg << std::endl;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// process Qt event loop to deal with messages of online/offline info
|
||||||
|
|
||||||
|
QCoreApplication::processEvents();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -357,6 +357,11 @@ bool TorManager::start()
|
|||||||
emit configurationNeededChanged();
|
emit configurationNeededChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::cerr << "Starting Tor process:" << std::endl;
|
||||||
|
std::cerr << " Tor executable path: " << executable.toStdString() << std::endl;
|
||||||
|
std::cerr << " Tor data directory : " << d->dataDir.toStdString() << std::endl;
|
||||||
|
std::cerr << " Tor default torrc : " << defaultTorrc.toStdString() << std::endl;
|
||||||
|
|
||||||
d->process->setExecutable(executable);
|
d->process->setExecutable(executable);
|
||||||
d->process->setDataDir(d->dataDir);
|
d->process->setDataDir(d->dataDir);
|
||||||
d->process->setDefaultTorrc(defaultTorrc);
|
d->process->setDefaultTorrc(defaultTorrc);
|
||||||
|
Loading…
Reference in New Issue
Block a user