mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 04:10:25 +08:00
用户平台界面设置中增加“使用的DNS解析库”选项
This commit is contained in:
@@ -20,6 +20,10 @@ type UserUIConfig struct {
|
||||
|
||||
TimeZone string `json:"timeZone"` // 时区
|
||||
|
||||
DNSResolver struct {
|
||||
Type string `json:"type"` // 类型,参考 DNSResolverType*
|
||||
} `json:"dnsResolver"` // DNS解析设置
|
||||
|
||||
ClientIPHeaderNames string `json:"clientIPHeaderNames"` // 客户端IP获取报头名称列表
|
||||
|
||||
Server struct {
|
||||
@@ -58,6 +62,9 @@ func NewUserUIConfig() *UserUIConfig {
|
||||
TimeZone: "Asia/Shanghai",
|
||||
}
|
||||
|
||||
// DNS解析设置
|
||||
config.DNSResolver.Type = "default"
|
||||
|
||||
// 服务相关
|
||||
config.Server.CheckCNAME = true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user