[优化] 添加 OpenRestyResolvers 配置支持自定义 DNS 解析器

This commit is contained in:
ryan
2026-05-26 09:10:08 +08:00
parent 83a426d3d6
commit bddf641bf1
8 changed files with 41 additions and 9 deletions
-5
View File
@@ -153,11 +153,6 @@ func updateOptionMap(key string, value string) {
common.OptionMap = make(map[string]string)
}
common.OptionMap[key] = value
if key == "OpenRestyResolvers" {
delete(common.OptionMap, key)
common.OptionMapRWMutex.Unlock()
return
}
if strings.HasSuffix(key, "Permission") {
intValue, _ := strconv.Atoi(value)
switch key {