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

@@ -39,6 +39,9 @@ var defaultConfig = ConfFromFile{
"token": "", "token": "",
}, },
}, },
Reality: RealityConf{
Addr: "http://www.baidu.com",
},
CustomHeader: map[string]interface{}{ CustomHeader: map[string]interface{}{
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36", "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36",
}, },

View File

@@ -27,6 +27,11 @@ type (
Provider string `json:"provider" yaml:"provider"` Provider string `json:"provider" yaml:"provider"`
Config map[string]interface{} `json:"config" yaml:"config"` 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 { type SettingsConf struct {
@@ -34,5 +39,6 @@ type SettingsConf struct {
Guardian GuardianConf `json:"guardian" yaml:"guardian"` Guardian GuardianConf `json:"guardian" yaml:"guardian"`
Log LogConf `json:"log" yaml:"log"` Log LogConf `json:"log" yaml:"log"`
DDNS DdnsConf `json:"ddns" yaml:"ddns"` DDNS DdnsConf `json:"ddns" yaml:"ddns"`
Reality RealityConf `json:"reality" yaml:"reality"`
CustomHeader map[string]interface{} `json:"custom_header" yaml:"custom_header"` CustomHeader map[string]interface{} `json:"custom_header" yaml:"custom_header"`
} }