mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
fixed keymap validation
This commit is contained in:
parent
cf2f763d1b
commit
ec3890e0e6
@ -229,7 +229,7 @@ def _get_config_scheme() -> Dict:
|
|||||||
|
|
||||||
"hid": {
|
"hid": {
|
||||||
"type": Option("", type=valid_stripped_string_not_empty),
|
"type": Option("", type=valid_stripped_string_not_empty),
|
||||||
"keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_path),
|
"keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_file),
|
||||||
# Dynamic content
|
# Dynamic content
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -340,7 +340,7 @@ def _get_config_scheme() -> Dict:
|
|||||||
|
|
||||||
"vnc": {
|
"vnc": {
|
||||||
"desired_fps": Option(30, type=valid_stream_fps),
|
"desired_fps": Option(30, type=valid_stream_fps),
|
||||||
"keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_path),
|
"keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_file),
|
||||||
|
|
||||||
"server": {
|
"server": {
|
||||||
"host": Option("::", type=valid_ip_or_host),
|
"host": Option("::", type=valid_ip_or_host),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user