summaryrefslogtreecommitdiff
path: root/kvmd/apps/ipmi
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/ipmi
parent74d2d7466779b4c3367dd0677a5072f982061931 (diff)
check if ipv6 enabled before listen
Diffstat (limited to 'kvmd/apps/ipmi')
-rw-r--r--kvmd/apps/ipmi/server.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd/apps/ipmi/server.py b/kvmd/apps/ipmi/server.py
index 3679ce10..47d3950e 100644
--- a/kvmd/apps/ipmi/server.py
+++ b/kvmd/apps/ipmi/server.py
@@ -41,6 +41,7 @@ from ...logging import get_logger
from ...clients.kvmd import KvmdClient
from ... import aiotools
+from ... import network
from .auth import IpmiAuthManager
@@ -65,6 +66,8 @@ class IpmiServer(BaseIpmiServer): # pylint: disable=too-many-instance-attribute
sol_proxy_port: int,
) -> None:
+ host = network.get_listen_host(host)
+
super().__init__(authdata=auth_manager, address=host, port=port)
self.__auth_manager = auth_manager