用户平台界面设置中增加“使用的DNS解析库”选项

This commit is contained in:
GoEdgeLab
2024-04-29 15:16:42 +08:00
parent 03fd2e3c6c
commit 8c6408d90e

View File

@@ -20,6 +20,10 @@ type UserUIConfig struct {
TimeZone string `json:"timeZone"` // 时区 TimeZone string `json:"timeZone"` // 时区
DNSResolver struct {
Type string `json:"type"` // 类型,参考 DNSResolverType*
} `json:"dnsResolver"` // DNS解析设置
ClientIPHeaderNames string `json:"clientIPHeaderNames"` // 客户端IP获取报头名称列表 ClientIPHeaderNames string `json:"clientIPHeaderNames"` // 客户端IP获取报头名称列表
Server struct { Server struct {
@@ -58,6 +62,9 @@ func NewUserUIConfig() *UserUIConfig {
TimeZone: "Asia/Shanghai", TimeZone: "Asia/Shanghai",
} }
// DNS解析设置
config.DNSResolver.Type = "default"
// 服务相关 // 服务相关
config.Server.CheckCNAME = true config.Server.CheckCNAME = true