mirror of
https://github.com/tiennm99/mtprotoproxy.git
synced 2026-10-12 20:15:46 +00:00
disable the first bad packet heuristics if the tls-only mode activated, it has time-based protection instead
This commit is contained in:
1 parent
50cd74051f
commit
51c8d68271
1 file changed
+2
-2
+2
-2
@@ -160,10 +160,10 @@ def init_config():
|
||||
conf_dict.setdefault("USER_DATA_QUOTA", {})
|
||||
|
||||
# length of used handshake randoms for active fingerprinting protection, zero to disable
|
||||
conf_dict.setdefault("REPLAY_CHECK_LEN", 32768)
|
||||
conf_dict.setdefault("REPLAY_CHECK_LEN", 65536)
|
||||
|
||||
# block bad first packets to even more protect against replay-based fingerprinting
|
||||
conf_dict.setdefault("BLOCK_IF_FIRST_PKT_BAD", True)
|
||||
conf_dict.setdefault("BLOCK_IF_FIRST_PKT_BAD", not conf_dict["TLS_ONLY"])
|
||||
|
||||
# delay in seconds between stats printing
|
||||
conf_dict.setdefault("STATS_PRINT_PERIOD", 600)
|
||||
|
||||
Reference in new issue
Block a user