fix conection
This commit is contained in:
parent
c93a8572a1
commit
29bd0e713b
1 changed files with 1 additions and 5 deletions
|
|
@ -1,10 +1,7 @@
|
|||
from pathlib import Path
|
||||
from core.services.encrypted_proxy.vless_service import enable_vless, disable_vless
|
||||
|
||||
|
||||
class VlessController:
|
||||
def __init__(self, config_dir: Path, socks5_port: int):
|
||||
self.config_dir = config_dir
|
||||
def __init__(self, socks5_port: int):
|
||||
self.socks5_port = socks5_port
|
||||
|
||||
def enable(self, vless_link: str, username: str, observer=None) -> bool:
|
||||
|
|
@ -19,7 +16,6 @@ class VlessController:
|
|||
return enable_vless(
|
||||
vless_link=vless_link,
|
||||
username=username,
|
||||
config_dir=self.config_dir,
|
||||
socks5_port=self.socks5_port,
|
||||
observer=observer,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue