fix connection

This commit is contained in:
Zenaku 2026-05-25 01:08:27 +00:00
parent 29bd0e713b
commit 9aa3518fec

View file

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