[#367] session: Support magic_number field of RequestMetaHeader

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-01-13 15:25:03 +03:00 committed by LeL
parent e9a8451fb7
commit 227a871a04
5 changed files with 47 additions and 1 deletions

View file

@ -130,6 +130,7 @@ func generateRequestMetaHeader(empty, withOrigin bool) *session.RequestMetaHeade
if !empty {
m.SetEpoch(13)
m.SetTTL(100)
m.SetNetworkMagic(1337)
}
m.SetXHeaders(GenerateXHeaders(empty))