diff --git a/README.md b/README.md index e9fe1e2..f4560ea 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ The proxy can be launched: You can configure the MTProto proxy to use a SOCKS5 proxy for outgoing connections to Telegram servers. This is useful when your server cannot directly connect to Telegram or you want to route traffic through another proxy. -**Note:** SOCKS5 mode is incompatible with middle proxy advertising and uvloop. +**Note:** SOCKS5 mode is incompatible with middle proxy advertising. #### Configuration in config.py #### @@ -133,5 +133,4 @@ services: **Important:** When SOCKS5 is enabled: - The middle proxy feature is automatically disabled -- uvloop acceleration is not available - Channel advertising may not work diff --git a/mtprotoproxy.py b/mtprotoproxy.py index 57fe0f0..e64b189 100755 --- a/mtprotoproxy.py +++ b/mtprotoproxy.py @@ -326,7 +326,7 @@ def apply_upstream_proxy_settings(): import socks print_err( - "Socket-proxy mode activated, it is incompatible with advertising and uvloop" + "Socket-proxy mode activated, it is incompatible with advertising" ) socks.set_default_proxy( socks.PROXY_TYPE_SOCKS5, @@ -2472,9 +2472,6 @@ def reload_signal(signum, frame): def try_setup_uvloop(): - if config.SOCKS5_HOST and config.SOCKS5_PORT: - # socks mode is not compatible with uvloop - return try: import uvloop