fix connection
This commit is contained in:
parent
29bd0e713b
commit
9aa3518fec
1 changed files with 2 additions and 3 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue