From 8ef8f9e1c9ee9d0039b9e8a2fc7ba10e763e539a Mon Sep 17 00:00:00 2001 From: zenaku Date: Sat, 23 May 2026 03:03:23 +0000 Subject: [PATCH] feat: use SystemProfile path for sing-box config storage --- core/services/encrypted_proxy/vless_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/services/encrypted_proxy/vless_service.py b/core/services/encrypted_proxy/vless_service.py index 1a5a7ca..25c9282 100644 --- a/core/services/encrypted_proxy/vless_service.py +++ b/core/services/encrypted_proxy/vless_service.py @@ -1,5 +1,6 @@ from urllib.parse import unquote from pathlib import Path +from core.Constants import Constants from core.utils.encrypted_proxy.net import get_real_ip, verify_ip from core.utils.encrypted_proxy.singbox import SingboxRunner @@ -103,7 +104,7 @@ def enable_vless(vless_link: str, username: str, config_dir: Path, real_ip = get_real_ip() runner = SingboxRunner() runner.stop() - config_path = config_dir / f"{username}-sing-box.json" + config_path = Path(Constants.HV_DATA_HOME) / f"{username}-sing-box.json" config = build_vless_config(vless, socks5_port) try: runner.write_config(config_path, config)