summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.bumpversion.cfg2
-rw-r--r--PKGBUILD2
-rw-r--r--kvmd/__init__.py2
-rw-r--r--kvmd/apps/kvmd/auth.py2
-rwxr-xr-xsetup.py2
-rw-r--r--web/share/js/kvm/stream_media.js1
6 files changed, 6 insertions, 5 deletions
diff --git a/.bumpversion.cfg b/.bumpversion.cfg
index efb04830..a44d682d 100644
--- a/.bumpversion.cfg
+++ b/.bumpversion.cfg
@@ -1,7 +1,7 @@
[bumpversion]
commit = True
tag = True
-current_version = 4.42
+current_version = 4.43
parse = (?P<major>\d+)\.(?P<minor>\d+)(\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?)?
serialize =
{major}.{minor}
diff --git a/PKGBUILD b/PKGBUILD
index c84a8a57..2bf798a5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -39,7 +39,7 @@ for _variant in "${_variants[@]}"; do
pkgname+=(kvmd-platform-$_platform-$_board)
done
pkgbase=kvmd
-pkgver=4.42
+pkgver=4.43
pkgrel=1
pkgdesc="The main PiKVM daemon"
url="https://github.com/pikvm/kvmd"
diff --git a/kvmd/__init__.py b/kvmd/__init__.py
index d8199fd8..67b94f37 100644
--- a/kvmd/__init__.py
+++ b/kvmd/__init__.py
@@ -20,4 +20,4 @@
# ========================================================================== #
-__version__ = "4.42"
+__version__ = "4.43"
diff --git a/kvmd/apps/kvmd/auth.py b/kvmd/apps/kvmd/auth.py
index 008e8a4f..bf979836 100644
--- a/kvmd/apps/kvmd/auth.py
+++ b/kvmd/apps/kvmd/auth.py
@@ -95,7 +95,7 @@ class AuthManager:
secret = file.read().strip()
if secret:
code = passwd[-6:]
- if not pyotp.TOTP(secret).verify(code):
+ if not pyotp.TOTP(secret).verify(code, valid_window=1):
get_logger().error("Got access denied for user %r by TOTP", user)
return False
passwd = passwd[:-6]
diff --git a/setup.py b/setup.py
index 30429974..6677d644 100755
--- a/setup.py
+++ b/setup.py
@@ -56,7 +56,7 @@ def main() -> None:
setup(
name="kvmd",
- version="4.42",
+ version="4.43",
url="https://github.com/pikvm/kvmd",
license="GPLv3",
author="Maxim Devaev",
diff --git a/web/share/js/kvm/stream_media.js b/web/share/js/kvm/stream_media.js
index fe34c136..89df9c28 100644
--- a/web/share/js/kvm/stream_media.js
+++ b/web/share/js/kvm/stream_media.js
@@ -171,6 +171,7 @@ export function MediaStreamer(__setActive, __setInactive, __setInfo) {
return;
}
await __decoder.configure({"codec": __codec, "optimizeForLatency": true});
+ __setActive();
}
let chunk = new EncodedVideoChunk({ // eslint-disable-line no-undef