mirror of
https://github.com/htrefil/rkvm.git
synced 2025-02-12 08:48:12 +01:00
Rename device-names configuration array to input-device-paths
This commit is contained in:
parent
759cc416c5
commit
ca04e96ca3
2 changed files with 8 additions and 4 deletions
|
@ -3,9 +3,13 @@ listen = "0.0.0.0:5258"
|
||||||
switch-keys = ["left-alt", "left-ctrl"]
|
switch-keys = ["left-alt", "left-ctrl"]
|
||||||
certificate = "/etc/rkvm/certificate.pem"
|
certificate = "/etc/rkvm/certificate.pem"
|
||||||
key = "/etc/rkvm/key.pem"
|
key = "/etc/rkvm/key.pem"
|
||||||
# Specify the list of input devices to register in the following array,
|
# Specify a list of paths to input device event file to register the
|
||||||
# or leave the array emtpy to register all detected input devices.
|
# input devices in the following array, or leave the array emtpy to
|
||||||
device-names = []
|
# register all detected input devices.
|
||||||
|
#
|
||||||
|
# You can find the path to event file of each input device by listing
|
||||||
|
# the contents of `/dev/input/by-id/` folder.
|
||||||
|
input-device-paths = []
|
||||||
|
|
||||||
# This is to prevent malicious clients from connecting to the server.
|
# This is to prevent malicious clients from connecting to the server.
|
||||||
# Make sure this matches your client's config.
|
# Make sure this matches your client's config.
|
||||||
|
|
|
@ -12,7 +12,7 @@ pub struct Config {
|
||||||
pub key: PathBuf,
|
pub key: PathBuf,
|
||||||
pub password: String,
|
pub password: String,
|
||||||
pub switch_keys: HashSet<SwitchKey>,
|
pub switch_keys: HashSet<SwitchKey>,
|
||||||
pub device_names: HashSet<String>,
|
pub input_device_paths: HashSet<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Deserialize, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
|
|
Loading…
Add table
Reference in a new issue