summaryrefslogtreecommitdiff
path: root/kvmd/apps/vnc/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-05-17 15:24:29 +0300
committerDevaev Maxim <[email protected]>2020-05-17 16:09:58 +0300
commit1fd33bc8ed29c3aaeb6c9971e5879c04113246a3 (patch)
treedb022c9c291fdd2495ddd02aa89b532ce4d011cc /kvmd/apps/vnc/__init__.py
parent1251b8d705c5a48a78290b2d25cd4de048245035 (diff)
refactoring
Diffstat (limited to 'kvmd/apps/vnc/__init__.py')
-rw-r--r--kvmd/apps/vnc/__init__.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/kvmd/apps/vnc/__init__.py b/kvmd/apps/vnc/__init__.py
index 8bd9be63..9bcc9d27 100644
--- a/kvmd/apps/vnc/__init__.py
+++ b/kvmd/apps/vnc/__init__.py
@@ -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()