add pause series
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user