summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-05-17 22:05:58 +0300
committerDevaev Maxim <[email protected]>2020-05-17 22:20:28 +0300
commit3947640771a8d212e13196808679ba3caa1c411d (patch)
tree42771c1bb99d3a5f1cb14814ef4967b74f7bfe77 /kvmd/apps
parent0447358f5e90b3e81ef56cdaa84042bb16331eb4 (diff)
refactoring
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/vnc/server.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/apps/vnc/server.py b/kvmd/apps/vnc/server.py
index b860b261..12baeb20 100644
--- a/kvmd/apps/vnc/server.py
+++ b/kvmd/apps/vnc/server.py
@@ -233,7 +233,7 @@ class _Client(RfbClient): # pylint: disable=too-many-instance-attributes
# =====
async def _authorize_userpass(self, user: str, passwd: str) -> bool:
- if (await self.__kvmd.authorize(user, passwd)):
+ if (await self.__kvmd.auth.check(user, passwd)):
self.__authorized.set_result((user, passwd))
return True
return False
@@ -286,7 +286,7 @@ class _Client(RfbClient): # pylint: disable=too-many-instance-attributes
(user, passwd) = self.__authorized.result()
get_logger(0).info("[main] Client %s: Applying streamer params: quality=%d%%; desired_fps=%d ...",
self._remote, self._encodings.tight_jpeg_quality, self.__desired_fps)
- await self.__kvmd.set_streamer_params(user, passwd, self._encodings.tight_jpeg_quality, self.__desired_fps)
+ await self.__kvmd.streamer.set_params(user, passwd, self._encodings.tight_jpeg_quality, self.__desired_fps)
async def _on_fb_update_request(self) -> None:
async with self.__lock:
@@ -326,7 +326,7 @@ class VncServer: # pylint: disable=too-many-instance-attributes
logger.info("Preparing client %s ...", remote)
try:
try:
- none_auth_only = await kvmd.authorize("", "")
+ none_auth_only = await kvmd.auth.check("", "")
except KvmdError as err:
logger.error("Client %s: Can't check KVMD auth mode: %s", remote, err)
return