This commit is contained in:
Sammael 2018-05-24 22:06:04 +00:00 committed by GitHub
commit 947e79de8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 264 additions and 129 deletions

View file

@ -345,7 +345,7 @@ namespace client
auto l = version.length () + 1 + 8;
uint8_t * payload = new uint8_t[l];
// set date
auto ts = i2p::util::GetMillisecondsSinceEpoch ();
auto ts = i2p::util::getTime<std::chrono::milliseconds> (i2p::util::TimeType::milliseconds);
htobe64buf (payload, ts);
// echo vesrion back
PutString (payload + 8, l - 8, version);