mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-07-01 10:14:36 +02:00
send actual version in SetDate
This commit is contained in:
parent
0445a5d775
commit
f230c110aa
1 changed files with 1 additions and 1 deletions
|
@ -625,7 +625,7 @@ namespace client
|
|||
void I2CPSession::GetDateMessageHandler (const uint8_t * buf, size_t len)
|
||||
{
|
||||
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
|
||||
auto ts = i2p::util::GetMillisecondsSinceEpoch ();
|
||||
htobe64buf (payload.data(), ts);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue