mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
proper endiness of relay tag
This commit is contained in:
parent
fbe6c22884
commit
9655891e4b
2
SSU.cpp
2
SSU.cpp
@ -314,7 +314,7 @@ namespace ssu
|
||||
rnd.GenerateWord32 (relayTag);
|
||||
m_Server.AddRelay (relayTag, m_RemoteEndpoint);
|
||||
}
|
||||
*(uint32_t *)(payload) = relayTag;
|
||||
*(uint32_t *)(payload) = htobe32 (relayTag);
|
||||
payload += 4; // relay tag
|
||||
*(uint32_t *)(payload) = htobe32 (i2p::util::GetSecondsSinceEpoch ()); // signed on time
|
||||
payload += 4;
|
||||
|
Loading…
Reference in New Issue
Block a user