summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-02-01 17:26:08 +0200
committerMaxim Devaev <[email protected]>2024-02-01 17:26:08 +0200
commit7141eebbf8e25438eb2953a88e0cc4e49b28f309 (patch)
treebbd0c3a477ae599cf45140d8fe4588fe25d30307 /kvmd/apps/__init__.py
parent74d2d7466779b4c3367dd0677a5072f982061931 (diff)
check if ipv6 enabled before listen
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 74adeaec..8e504ed1 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -656,7 +656,7 @@ def _get_config_scheme() -> dict:
"ipmi": {
"server": {
- "host": Option("::", type=valid_ip_or_host),
+ "host": Option("", type=valid_ip_or_host, if_empty=""),
"port": Option(623, type=valid_port),
"timeout": Option(10.0, type=valid_float_f01),
},
@@ -684,7 +684,7 @@ def _get_config_scheme() -> dict:
"keymap": Option("/usr/share/kvmd/keymaps/en-us", type=valid_abs_file),
"server": {
- "host": Option("::", type=valid_ip_or_host),
+ "host": Option("", type=valid_ip_or_host, if_empty=""),
"port": Option(5900, type=valid_port),
"max_clients": Option(10, type=valid_int_f1),