chore: 添加 reality 配置

This commit is contained in:
Mmx233
2024-01-01 15:17:28 +08:00
parent 55ebcba831
commit 3d812a361f
2 changed files with 9 additions and 0 deletions

View File

@@ -27,6 +27,11 @@ type (
Provider string `json:"provider" yaml:"provider"`
Config map[string]interface{} `json:"config" yaml:"config"`
}
RealityConf struct {
Enable bool `json:"enable" yaml:"enable"`
Addr string `json:"addr" yaml:"addr"`
}
)
type SettingsConf struct {
@@ -34,5 +39,6 @@ type SettingsConf struct {
Guardian GuardianConf `json:"guardian" yaml:"guardian"`
Log LogConf `json:"log" yaml:"log"`
DDNS DdnsConf `json:"ddns" yaml:"ddns"`
Reality RealityConf `json:"reality" yaml:"reality"`
CustomHeader map[string]interface{} `json:"custom_header" yaml:"custom_header"`
}