mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
check if ipv6 enabled before listen
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user