mirror of
https://github.com/seriyps/mtproto_proxy.git
synced 2026-08-04 07:08:10 +00:00
Make sure stored "session fingerprint" is not referring larger binary
This commit is contained in:
parent
6a88feb97b
commit
c8804a16bb
1 changed files with 1 additions and 1 deletions
|
|
@ -128,7 +128,7 @@ code_change(_OldVsn, State, _Extra) ->
|
|||
fingerprint(<<_:8/binary, KeyIV:(32 + 16)/binary, _:8/binary>>) ->
|
||||
%% It would be better to use whole 64b packet as fingerprint, but will use only
|
||||
%% 48b Key + IV part to save some space.
|
||||
KeyIV.
|
||||
binary:copy(KeyIV).
|
||||
|
||||
bucket(Timestamp) ->
|
||||
Timestamp div ?HISTOGRAM_BUCKET_SIZE.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue