mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 07:24: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/>.
|
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import asyncio
|
import asyncio
|
||||||
|
import ipaddress
|
||||||
import logging
|
import logging
|
||||||
import socket
|
import socket
|
||||||
import ipaddress
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
import socks
|
import socks
|
||||||
|
|
@ -69,7 +69,7 @@ class TCP:
|
||||||
|
|
||||||
log.info("Using proxy {}:{}".format(hostname, port))
|
log.info("Using proxy {}:{}".format(hostname, port))
|
||||||
else:
|
else:
|
||||||
super().__init__(
|
self.socket = socks.socksocket(
|
||||||
socket.AF_INET6 if ipv6
|
socket.AF_INET6 if ipv6
|
||||||
else socket.AF_INET
|
else socket.AF_INET
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue