From 9aa3518fecbf4213227e22c4b851ad3b3b19d3c8 Mon Sep 17 00:00:00 2001 From: zenaku Date: Mon, 25 May 2026 01:08:27 +0000 Subject: [PATCH] fix connection --- core/services/encrypted_proxy/hysteria_service.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/services/encrypted_proxy/hysteria_service.py b/core/services/encrypted_proxy/hysteria_service.py index a425a1b..193e7c7 100644 --- a/core/services/encrypted_proxy/hysteria_service.py +++ b/core/services/encrypted_proxy/hysteria_service.py @@ -1,8 +1,8 @@ +import socket 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 -import socket def _resolve(host: str) -> str: @@ -68,8 +68,7 @@ def build_hysteria_config(username: str, password: str, def enable_hysteria(username: str, password: str, server_host: str, - config_dir: Path, socks5_port: int, - observer=None) -> bool: + socks5_port: int, observer=None) -> bool: real_ip = get_real_ip() runner = SingboxRunner() runner.stop()