ffi
This commit is contained in:
parent
db8a0f0c74
commit
c93a8572a1
1 changed files with 2 additions and 6 deletions
|
|
@ -1,10 +1,7 @@
|
||||||
from pathlib import Path
|
|
||||||
from core.services.encrypted_proxy.hysteria_service import enable_hysteria, disable_hysteria
|
from core.services.encrypted_proxy.hysteria_service import enable_hysteria, disable_hysteria
|
||||||
|
|
||||||
|
|
||||||
class HysteriaController:
|
class HysteriaController:
|
||||||
def __init__(self, config_dir: Path, socks5_port: int):
|
def __init__(self, socks5_port: int):
|
||||||
self.config_dir = config_dir
|
|
||||||
self.socks5_port = socks5_port
|
self.socks5_port = socks5_port
|
||||||
|
|
||||||
def enable(self, username: str, password: str,
|
def enable(self, username: str, password: str,
|
||||||
|
|
@ -21,7 +18,6 @@ class HysteriaController:
|
||||||
username=username,
|
username=username,
|
||||||
password=password,
|
password=password,
|
||||||
server_host=server_host,
|
server_host=server_host,
|
||||||
config_dir=self.config_dir,
|
|
||||||
socks5_port=self.socks5_port,
|
socks5_port=self.socks5_port,
|
||||||
observer=observer,
|
observer=observer,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue