mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
NTP time sync
This commit is contained in:
parent
42b556574f
commit
85394f2438
4 changed files with 78 additions and 21 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "ClientContext.h"
|
||||
#include "Crypto.h"
|
||||
#include "UPnP.h"
|
||||
#include "Timestamp.h"
|
||||
#include "util.h"
|
||||
|
||||
#include "Event.h"
|
||||
|
@ -282,6 +283,9 @@ namespace i2p
|
|||
d.UPnP->Start ();
|
||||
}
|
||||
|
||||
bool nettime; i2p::config::GetOption("nettime.enabled", nettime);
|
||||
if (nettime) i2p::util::RequestNTPTimeSync ();
|
||||
|
||||
bool ntcp; i2p::config::GetOption("ntcp", ntcp);
|
||||
bool ssu; i2p::config::GetOption("ssu", ssu);
|
||||
LogPrint(eLogInfo, "Daemon: starting Transports");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue