mirror of
https://github.com/tiennm99/mtprotoproxy.git
synced 2026-10-17 00:15:00 +00:00
MODES option instead of SECURE_ONLY and TLS_ONLY
This commit is contained in:
1 parent
7f19b3f78d
commit
d41b4abf35
2 files changed
+80
-35
No files matched your search
@@ -3,18 +3,23 @@ PORT = 443
|
||||
# name -> secret (32 hex chars)
|
||||
USERS = {
|
||||
"tg": "00000000000000000000000000000001",
|
||||
# "tg2": "0123456789abcdef0123456789abcdef",
|
||||
# "tg2": "0123456789abcdef0123456789abcdef",
|
||||
}
|
||||
|
||||
# Makes the proxy harder to detect
|
||||
# Can be incompatible with very old clients
|
||||
SECURE_ONLY = True
|
||||
MODES = {
|
||||
# Classic mode, easy to detect
|
||||
"classic": False,
|
||||
|
||||
# Makes the proxy even more hard to detect
|
||||
# Compatible only with the recent clients
|
||||
TLS_ONLY = True
|
||||
# Makes the proxy harder to detect
|
||||
# Can be incompatible with very old clients
|
||||
"secure": False,
|
||||
|
||||
# The domain for TLS, bad clients are proxied there
|
||||
# Makes the proxy even more hard to detect
|
||||
# Compatible only with the recent clients
|
||||
"tls": True
|
||||
}
|
||||
|
||||
# The domain for TLS mode, bad clients are proxied there
|
||||
# Use random existing domain, proxy checks it on start
|
||||
# TLS_DOMAIN = "www.google.com"
|
||||
|
||||
|
||||
Reference in new issue
Block a user