refactor(lite): keep tunnel startup details out of main log
This commit is contained in:
+1
-1
@@ -1145,7 +1145,7 @@ def _tls_start(remote_host, remote_port=443, use_tls=True, bypass_lan=False, sma
|
|||||||
if not quiet:
|
if not quiet:
|
||||||
route = "→".join(str(node.get("country") or "?") for node in (jump_chain or []))
|
route = "→".join(str(node.get("country") or "?") for node in (jump_chain or []))
|
||||||
suffix = f" [{route}]" if route else ""
|
suffix = f" [{route}]" if route else ""
|
||||||
log(f"本地转发器已启动 ({proto} 127.0.0.1:{_TLS_LOCAL_PORT} -> {remote_host}:{remote_port}{suffix})")
|
log_detail(f"本地转发器已启动 ({proto} 127.0.0.1:{_TLS_LOCAL_PORT} -> {remote_host}:{remote_port}{suffix})")
|
||||||
|
|
||||||
def _inject_proxy_auth(data: bytes, proxy_node=None) -> bytes:
|
def _inject_proxy_auth(data: bytes, proxy_node=None) -> bytes:
|
||||||
"""在 HTTP 代理请求头中注入 Authorization(如果尚未存在)。
|
"""在 HTTP 代理请求头中注入 Authorization(如果尚未存在)。
|
||||||
|
|||||||
@@ -727,7 +727,7 @@ class TunBackend:
|
|||||||
# 因此 Windows 不需要 --interface;Linux/macOS 仍保留原行为。
|
# 因此 Windows 不需要 --interface;Linux/macOS 仍保留原行为。
|
||||||
if interface and os.name != "nt":
|
if interface and os.name != "nt":
|
||||||
command.extend(["--interface", interface])
|
command.extend(["--interface", interface])
|
||||||
self.log(f"本地 SOCKS5 桥接: 127.0.0.1:{socks_port}")
|
self.detail_log(f"本地 SOCKS5 桥接: 127.0.0.1:{socks_port}")
|
||||||
try:
|
try:
|
||||||
self._process = subprocess.Popen(
|
self._process = subprocess.Popen(
|
||||||
command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
|
command, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
|
||||||
|
|||||||
Reference in New Issue
Block a user