|
@@ -21,7 +21,7 @@ type HostInfo struct {
|
|
|
Hash string `json:"hash,omitempty" yaml:"hash"` // 连接验证使用,格式 method:key
|
|
Hash string `json:"hash,omitempty" yaml:"hash"` // 连接验证使用,格式 method:key
|
|
|
Proxy bool `json:"proxy,omitempty" yaml:"proxy"` // 是否代理
|
|
Proxy bool `json:"proxy,omitempty" yaml:"proxy"` // 是否代理
|
|
|
Nat bool `json:"nat,omitempty" yaml:"nat"` // 是否是前端nat的方式处理
|
|
Nat bool `json:"nat,omitempty" yaml:"nat"` // 是否是前端nat的方式处理
|
|
|
- Priority int16 `json:"priority,omitempty" yaml:"priority"` // 优先级,-1 表示不可用,0 表示最高优先级(为了兼容没有优先级的节点),1-100 表示优先级别,数值越高优先级越高
|
|
|
|
|
|
|
+ Priority int16 `json:"priority,omitempty" yaml:"priority"` // 优先级,-1 表示不可用,0 表示最高优先级(为了兼容没有优先级的节点),1-100 表示优先级别,数值越高优先级越高,不过这是由应用端决定的规则
|
|
|
Errors uint16 `json:"errors,omitempty" yaml:"errors"` // 连接失败计数,如果成功了则重置为0
|
|
Errors uint16 `json:"errors,omitempty" yaml:"errors"` // 连接失败计数,如果成功了则重置为0
|
|
|
Updated time.Time `json:"updated" yaml:"updated"` // 节点信息刷新时间
|
|
Updated time.Time `json:"updated" yaml:"updated"` // 节点信息刷新时间
|
|
|
}
|
|
}
|