add pause series

This commit is contained in:
Yuriy Yuriev
2026-05-20 15:43:42 +07:00
parent df184a4f20
commit f0f500dfdd
2 changed files with 101 additions and 33 deletions
+3 -3
View File
@@ -127,7 +127,7 @@ class Socks5ToHttpProxy:
return
request_text = request_line.decode('utf-8', errors='ignore').strip()
logger.info(f"Tunnel request: {request_text[:80]}")
logger.debug(f"Tunnel request: {request_text[:80]}")
if request_text.upper().startswith('CONNECT'):
await self._handle_connect(request_text, reader, writer)
@@ -183,7 +183,7 @@ class Socks5ToHttpProxy:
from python_socks import ProxyType
if self.username:
logger.info(f"SOCKS5 connect {host}:{port} via {self.socks5_host}:{self.socks5_port} auth=yes user={self.username[:4]}***")
logger.debug(f"SOCKS5 connect {host}:{port} via {self.socks5_host}:{self.socks5_port} auth=yes")
proxy = Proxy.create(
ProxyType.SOCKS5,
self.socks5_host, self.socks5_port,
@@ -209,7 +209,7 @@ class Socks5ToHttpProxy:
await writer.drain()
return
logger.info(f"SOCKS5 connected {host}:{port} OK")
logger.debug(f"SOCKS5 connected {host}:{port} OK")
writer.write(b'HTTP/1.1 200 Connection Established\r\n\r\n')
await writer.drain()