mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2025-12-31 20:54:51 +00:00
Fix bad merge after editing tcp.py
This commit is contained in:
parent
41acdd4d63
commit
8070bf4cd4
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue