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()