mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-09-04 10:22:06 +00:00
send actual version in SetDate
This commit is contained in:
parent
0445a5d775
commit
f230c110aa
@ -625,7 +625,7 @@ namespace client
|
|||||||
void I2CPSession::GetDateMessageHandler (const uint8_t * buf, size_t len)
|
void I2CPSession::GetDateMessageHandler (const uint8_t * buf, size_t len)
|
||||||
{
|
{
|
||||||
constexpr std::string_view version(I2P_VERSION);
|
constexpr std::string_view version(I2P_VERSION);
|
||||||
std::array<uint8_t, version.size() + 8> payload;
|
std::array<uint8_t, version.size() + 8 + 1> payload;
|
||||||
// set date
|
// set date
|
||||||
auto ts = i2p::util::GetMillisecondsSinceEpoch ();
|
auto ts = i2p::util::GetMillisecondsSinceEpoch ();
|
||||||
htobe64buf (payload.data(), ts);
|
htobe64buf (payload.data(), ts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user