mirror of
https://github.com/TeamPGM/pyrogram.git
synced 2024-11-18 13:34:54 +00:00
Fix bad merge after editing tcp.py
This commit is contained in:
parent
41acdd4d63
commit
8070bf4cd4
@ -17,9 +17,9 @@
|
||||
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import asyncio
|
||||
import ipaddress
|
||||
import logging
|
||||
import socket
|
||||
import ipaddress
|
||||
|
||||
try:
|
||||
import socks
|
||||
@ -69,7 +69,7 @@ class TCP:
|
||||
|
||||
log.info("Using proxy {}:{}".format(hostname, port))
|
||||
else:
|
||||
super().__init__(
|
||||
self.socket = socks.socksocket(
|
||||
socket.AF_INET6 if ipv6
|
||||
else socket.AF_INET
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user