Encrypted proxy killswitch + TUN optimization #1

Open
zenaku wants to merge 54 commits from feature/merge-encrypted-proxy into master
Showing only changes of commit 9aa3518fec - Show all commits

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