更新web

This commit is contained in:
Alex Yang
2026-01-21 09:46:49 +08:00
parent ac96c7c10b
commit 073f1961b1
80 changed files with 75919 additions and 12379 deletions

View File

@@ -140,7 +140,9 @@ func LoadConfig(path string) (*Config, error) {
// 所以这里保持默认行为让用户可以通过配置文件设置为false
}
// IPv6默认配置
config.DNS.EnableIPv6 = true // 默认启用IPv6解析
// 注意我们不能直接设置默认值因为JSON布尔值默认是false
// 我们需要检查配置文件中是否真的设置了这个字段
// 由于我们无法直接区分这里保持现状让用户可以通过配置文件设置为false
// DNSSEC专用服务器默认配置
if len(config.DNS.DNSSECUpstreamDNS) == 0 {
config.DNS.DNSSECUpstreamDNS = []string{"8.8.8.8:53", "1.1.1.1:53"}