Skip to content
Merged
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
5 changes: 5 additions & 0 deletions mtprotoproxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -2472,6 +2472,11 @@ def reload_signal(signum, frame):


def try_setup_uvloop():
# uvloop is incompatible with SOCKS5 proxy due to socket monkey-patching
if config.SOCKS5_HOST and config.SOCKS5_PORT:
print_err("SOCKS5 proxy is configured, skipping uvloop (incompatible)")
return

try:
import uvloop

Expand Down