From 0aed7bf24ae2b2c9801392138dcfa812b67d3df6 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Tue, 16 Jan 2018 16:26:20 +0100 Subject: [PATCH] Use socks socket to allow enabling a proxy --- pyrogram/connection/transport/tcp/tcp.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyrogram/connection/transport/tcp/tcp.py b/pyrogram/connection/transport/tcp/tcp.py index e7d635ae..11990202 100644 --- a/pyrogram/connection/transport/tcp/tcp.py +++ b/pyrogram/connection/transport/tcp/tcp.py @@ -19,10 +19,12 @@ import logging import socket +import socks + log = logging.getLogger(__name__) -class TCP(socket.socket): +class TCP(socks.socksocket): def __init__(self): super().__init__()