mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
细节优化
This commit is contained in:
@@ -9,6 +9,9 @@ import (
|
|||||||
|
|
||||||
func NewManage(cfg *ManageConfig, op ...client.Option) (*Manage, error) {
|
func NewManage(cfg *ManageConfig, op ...client.Option) (*Manage, error) {
|
||||||
//初始化配置
|
//初始化配置
|
||||||
|
if cfg == nil {
|
||||||
|
cfg = &ManageConfig{}
|
||||||
|
}
|
||||||
if len(cfg.Hosts) == 0 {
|
if len(cfg.Hosts) == 0 {
|
||||||
cfg.Hosts = Hosts
|
cfg.Hosts = Hosts
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user