summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 1654ec4c..d06e09a3 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -66,7 +66,9 @@ from ..validators.os import valid_unix_mode
from ..validators.os import valid_command
from ..validators.net import valid_ip_or_host
+from ..validators.net import valid_ip
from ..validators.net import valid_port
+from ..validators.net import valid_mac
from ..validators.kvm import valid_stream_quality
from ..validators.kvm import valid_stream_fps
@@ -212,6 +214,12 @@ def _get_config_scheme() -> Dict:
"extras": Option("/usr/share/kvmd/extras", type=valid_abs_dir, unpack_as="extras_path"),
},
+ "wol": {
+ "ip": Option("255.255.255.255", type=(lambda arg: valid_ip(arg, v6=False))),
+ "port": Option(9, type=valid_port),
+ "mac": Option("", type=(lambda arg: (valid_mac(arg) if arg else ""))),
+ },
+
"hid": {
"type": Option("", type=valid_stripped_string_not_empty),
# Dynamic content