Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ####

Expand Down Expand Up @@ -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
5 changes: 1 addition & 4 deletions mtprotoproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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

Expand Down
Loading