mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 19:27:49 +02:00
Merge ea899fbbfd
into 516f140bef
This commit is contained in:
commit
947e79de8a
17 changed files with 264 additions and 129 deletions
|
@ -68,6 +68,8 @@ namespace i2p
|
|||
{
|
||||
i2p::config::Init();
|
||||
i2p::config::ParseCmdline(argc, argv);
|
||||
|
||||
|
||||
|
||||
std::string config; i2p::config::GetOption("conf", config);
|
||||
std::string datadir; i2p::config::GetOption("datadir", datadir);
|
||||
|
@ -254,12 +256,17 @@ namespace i2p
|
|||
LogPrint(eLogInfo, "Daemon: using hidden mode");
|
||||
i2p::data::netdb.SetHidden(true);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
bool Daemon_Singleton::start()
|
||||
{
|
||||
|
||||
i2p::log::Logger().Start();
|
||||
|
||||
i2p::util::SyncTimeWithNTP();
|
||||
|
||||
LogPrint(eLogInfo, "Daemon: starting NetDB");
|
||||
i2p::data::netdb.Start();
|
||||
|
||||
|
@ -271,7 +278,12 @@ namespace i2p
|
|||
|
||||
bool ntcp; i2p::config::GetOption("ntcp", ntcp);
|
||||
bool ssu; i2p::config::GetOption("ssu", ssu);
|
||||
LogPrint(eLogInfo, "Daemon: starting Transports");
|
||||
|
||||
|
||||
LogPrint(eLogInfo, "Daemon: starting Transports");
|
||||
|
||||
|
||||
|
||||
if(!ssu) LogPrint(eLogInfo, "Daemon: ssu disabled");
|
||||
if(!ntcp) LogPrint(eLogInfo, "Daemon: ntcp disabled");
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace util
|
|||
virtual bool init(int argc, char* argv[]);
|
||||
virtual bool start();
|
||||
virtual bool stop();
|
||||
virtual void run () {};
|
||||
virtual void run () { };
|
||||
|
||||
bool isDaemon;
|
||||
bool running;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue