mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 21:40:36 -04:00
added Tor control window
This commit is contained in:
parent
5ca2d5e27b
commit
e87b25794f
5 changed files with 283 additions and 11 deletions
|
@ -48,6 +48,7 @@
|
|||
|
||||
#ifdef RETROTOR
|
||||
#include "TorControl/TorManager.h"
|
||||
#include "TorControl/TorControlWindow.h"
|
||||
#endif
|
||||
|
||||
#include "retroshare/rsidentity.h"
|
||||
|
@ -284,19 +285,20 @@ feenableexcept(FE_INVALID | FE_DIVBYZERO);
|
|||
// Start the Tor engine, and make sure it provides a viable hidden service
|
||||
|
||||
/* Tor control manager */
|
||||
Tor::TorManager *torManager = Tor::TorManager::instance();
|
||||
torManager->setDataDirectory(Rshare::dataDirectory() + QString("/tor/"));
|
||||
//torManager->setDataDirectory(QString("./tor"));//settings->filePath()).path() + QString("/tor/"));
|
||||
Tor::TorManager *torManager = Tor::TorManager::instance();
|
||||
torManager->setDataDirectory(Rshare::dataDirectory() + QString("/tor/"));
|
||||
//torManager->setDataDirectory(QString("./tor"));//settings->filePath()).path() + QString("/tor/"));
|
||||
|
||||
Tor::TorControl *torControl = torManager->control();
|
||||
torManager->start();
|
||||
torManager->start();
|
||||
|
||||
while(torManager->configurationNeeded())
|
||||
{
|
||||
usleep(1000*1000) ;
|
||||
|
||||
// we should display some configuration window here!
|
||||
}
|
||||
TorControlDialog tcd(torManager) ;
|
||||
tcd.exec();
|
||||
// tcd.show() ;
|
||||
//
|
||||
// while(true)
|
||||
// {
|
||||
// QCoreApplication::processEvents();
|
||||
// }
|
||||
#endif
|
||||
|
||||
/* Start RetroShare */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue