Rename device-names configuration array to input-device-paths

This commit is contained in:
Smith Dhumbumroong 2023-11-14 00:24:57 +07:00
parent 759cc416c5
commit ca04e96ca3
2 changed files with 8 additions and 4 deletions

View file

@ -3,9 +3,13 @@ listen = "0.0.0.0:5258"
switch-keys = ["left-alt", "left-ctrl"]
certificate = "/etc/rkvm/certificate.pem"
key = "/etc/rkvm/key.pem"
# Specify the list of input devices to register in the following array,
# or leave the array emtpy to register all detected input devices.
device-names = []
# Specify a list of paths to input device event file to register the
# input devices in the following array, or leave the array emtpy to
# 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.
# Make sure this matches your client's config.

View file

@ -12,7 +12,7 @@ pub struct Config {
pub key: PathBuf,
pub password: String,
pub switch_keys: HashSet<SwitchKey>,
pub device_names: HashSet<String>,
pub input_device_paths: HashSet<String>,
}
#[derive(Deserialize, Clone, Copy, PartialEq, Eq, Hash)]