mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-11-28 16:54:14 +00:00
fix: preserve trusted-device grants in Config2
Add fallible grant persistence with file locking and atomic replacement. Preserve the persisted grant state during ordinary settings writes so stale configuration snapshots cannot restore revoked devices. Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
1 parent
229b904508
commit
a2df328d0b
3 files changed
+204
-2
No files matched your search
@@ -90,3 +90,6 @@ webrtc = "0.13.0" # keep in lockstep with [dependencies] webrtc (rustc 1.75 pin,
|
||||
[target.'cfg(target_os = "linux")'.dependencies]
|
||||
users = { version = "0.11" }
|
||||
x11 = "2.21"
|
||||
|
||||
[target.'cfg(target_os = "windows")'.dependencies]
|
||||
windows = { version = "0.61", features = ["Win32_Storage_FileSystem", "Win32_System_IO", "Win32_Security"] }
|
||||
Reference in new issue
Block a user