mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 09:01:54 +08:00
refactoring
This commit is contained in:
@@ -25,7 +25,7 @@ from typing import Optional
|
||||
|
||||
from ...clients.kvmd import KvmdClient
|
||||
|
||||
from ... import make_user_agent
|
||||
from ... import htclient
|
||||
|
||||
from .. import init
|
||||
|
||||
@@ -45,7 +45,7 @@ def main(argv: Optional[List[str]]=None) -> None:
|
||||
IpmiServer(
|
||||
auth_manager=IpmiAuthManager(**config.auth._unpack()),
|
||||
kvmd=KvmdClient(
|
||||
user_agent=make_user_agent("KVMD-IPMI"),
|
||||
user_agent=htclient.make_user_agent("KVMD-IPMI"),
|
||||
**config.kvmd._unpack(),
|
||||
),
|
||||
**config.server._unpack(),
|
||||
|
||||
Reference in New Issue
Block a user