Skip to content

Commit 8070bf4

Browse files
committed
Fix bad merge after editing tcp.py
1 parent 41acdd4 commit 8070bf4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • pyrogram/connection/transport/tcp

pyrogram/connection/transport/tcp/tcp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

1919
import asyncio
20+
import ipaddress
2021
import logging
2122
import socket
22-
import ipaddress
2323

2424
try:
2525
import socks
@@ -69,7 +69,7 @@ def __init__(self, ipv6: bool, proxy: dict):
6969

7070
log.info("Using proxy {}:{}".format(hostname, port))
7171
else:
72-
super().__init__(
72+
self.socket = socks.socksocket(
7373
socket.AF_INET6 if ipv6
7474
else socket.AF_INET
7575
)

0 commit comments

Comments
 (0)