mirror of
https://github.com/telemt/telemt.git
synced 2026-05-22 19:51:43 +03:00
Fix formatter drift after rebasing security patch
This commit is contained in:
@@ -281,9 +281,7 @@ fn candidate_scan_start_offset_in(
|
||||
.handshake
|
||||
.auth_candidate_scan_seq
|
||||
.fetch_add(1, Ordering::Relaxed);
|
||||
candidate_scan_peer_seed(peer_ip)
|
||||
.wrapping_add(seq as usize)
|
||||
% total_users
|
||||
candidate_scan_peer_seed(peer_ip).wrapping_add(seq as usize) % total_users
|
||||
}
|
||||
|
||||
fn parse_tls_auth_material(
|
||||
|
||||
@@ -1339,7 +1339,8 @@ async fn mtproto_overload_full_scans_small_runtime_snapshot_to_preserve_cold_use
|
||||
}
|
||||
|
||||
let replay_checker = ReplayChecker::new(128, Duration::from_secs(60));
|
||||
let handshake = make_valid_mtproto_handshake("00000000000000000000000000000020", ProtoTag::Secure, 2);
|
||||
let handshake =
|
||||
make_valid_mtproto_handshake("00000000000000000000000000000020", ProtoTag::Secure, 2);
|
||||
let peer: SocketAddr = "198.51.100.215:44326".parse().unwrap();
|
||||
|
||||
let result = handle_mtproto_handshake_with_shared(
|
||||
|
||||
Reference in New Issue
Block a user