mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 10:31:54 +08:00
refactoring
This commit is contained in:
@@ -23,10 +23,13 @@
|
||||
from typing import List
|
||||
from typing import Optional
|
||||
|
||||
from ...clients.kvmd import KvmdClient
|
||||
from ...clients.streamer import StreamerClient
|
||||
|
||||
from ... import make_user_agent
|
||||
|
||||
from .. import init
|
||||
|
||||
from .kvmd import KvmdClient
|
||||
from .streamer import StreamerClient
|
||||
from .vncauth import VncAuthManager
|
||||
from .server import VncServer
|
||||
from .keysym import build_symmap
|
||||
@@ -53,6 +56,9 @@ def main(argv: Optional[List[str]]=None) -> None:
|
||||
symmap=build_symmap(config.keymap),
|
||||
|
||||
kvmd=KvmdClient(**config.kvmd._unpack()),
|
||||
streamer=StreamerClient(**config.streamer._unpack()),
|
||||
streamer=StreamerClient(
|
||||
user_agent=make_user_agent("KVMD-VNC"),
|
||||
**config.streamer._unpack(),
|
||||
),
|
||||
vnc_auth_manager=VncAuthManager(**config.auth.vncauth._unpack()),
|
||||
).run()
|
||||
|
||||
Reference in New Issue
Block a user