Browse Source

network bytes order for timestamp

pull/95/head
orignal 10 years ago
parent
commit
770452cf85
  1. 2
      I2NPProtocol.cpp

2
I2NPProtocol.cpp

@ -264,7 +264,7 @@ namespace i2p @@ -264,7 +264,7 @@ namespace i2p
if (isEndpoint) clearText.flag |= 0x40;
memcpy (clearText.ourIdent, ourIdent, 32);
memcpy (clearText.nextIdent, nextIdent, 32);
clearText.requestTime = i2p::util::GetHoursSinceEpoch ();
clearText.requestTime = htobe32 (i2p::util::GetHoursSinceEpoch ());
clearText.nextMessageID = htobe32(nextMessageID);
return clearText;
}

Loading…
Cancel
Save