Adjust some config

pull/3786/head
2dust 2023-04-27 10:15:22 +08:00
parent 3c4ae902fd
commit 6b6169e248
5 changed files with 16 additions and 13 deletions

View File

@ -141,7 +141,7 @@
public static readonly List<string> coreTypes = new() { "v2fly", "SagerNet", "Xray", "v2fly_v5", "sing_box" }; public static readonly List<string> coreTypes = new() { "v2fly", "SagerNet", "Xray", "v2fly_v5", "sing_box" };
public static readonly List<string> coreTypes4VLESS = new() { "Xray", "sing_box" }; public static readonly List<string> coreTypes4VLESS = new() { "Xray", "sing_box" };
public static readonly List<string> domainStrategys = new() { "AsIs", "IPIfNonMatch", "IPOnDemand" }; public static readonly List<string> domainStrategys = new() { "AsIs", "IPIfNonMatch", "IPOnDemand" };
public static readonly List<string> domainStrategys4Singbox = new() { "", "ipv4_only", "ipv6_only", "prefer_ipv4", "prefer_ipv6" }; public static readonly List<string> domainStrategys4Singbox = new() { "ipv4_only", "ipv6_only", "prefer_ipv4", "prefer_ipv6", "" };
public static readonly List<string> domainMatchers = new() { "linear", "mph", "" }; public static readonly List<string> domainMatchers = new() { "linear", "mph", "" };
public static readonly List<string> fingerprints = new() { "chrome", "firefox", "safari", "ios", "android", "edge", "360", "qq", "random", "randomized", "" }; public static readonly List<string> fingerprints = new() { "chrome", "firefox", "safari", "ios", "android", "edge", "360", "qq", "random", "randomized", "" };
public static readonly List<string> userAgent = new() { "chrome", "firefox", "safari", "edge", "none" }; public static readonly List<string> userAgent = new() { "chrome", "firefox", "safari", "edge", "none" };

View File

@ -77,8 +77,8 @@ namespace v2rayN.Handler
singboxConfig.log.level = _config.coreBasicItem.loglevel; singboxConfig.log.level = _config.coreBasicItem.loglevel;
break; break;
case "warn": case "warning":
singboxConfig.log.level = "warning"; singboxConfig.log.level = "warn";
break; break;
default: default:
@ -323,6 +323,7 @@ namespace v2rayN.Handler
public_key = node.publicKey, public_key = node.publicKey,
short_id = node.shortId short_id = node.shortId
}; };
tls.insecure = false;
} }
outbound.tls = tls; outbound.tls = tls;
} }
@ -662,7 +663,7 @@ namespace v2rayN.Handler
var normalDNS = item?.normalDNS; var normalDNS = item?.normalDNS;
if (string.IsNullOrWhiteSpace(normalDNS)) if (string.IsNullOrWhiteSpace(normalDNS))
{ {
normalDNS = "{\"servers\":[{\"address\":\"tls://8.8.8.8\"}]}"; normalDNS = "{\"servers\":[{\"address\":\"tcp://8.8.8.8\"}]}";
} }
var obj = Utils.ParseJson(normalDNS); var obj = Utils.ParseJson(normalDNS);

View File

@ -1,5 +1,10 @@
{ {
"servers": [ "servers": [
{
"tag": "remote",
"address": "tcp://8.8.8.8",
"detour": "proxy"
},
{ {
"tag": "local", "tag": "local",
"address": "223.5.5.5", "address": "223.5.5.5",
@ -13,14 +18,10 @@
"rules": [ "rules": [
{ {
"geosite": "cn", "geosite": "cn",
"server": "local", "server": "local"
"disable_cache": true
}, },
{ {
"geosite": "category-ads-all", "geosite": "category-ads-all",
"server": "block", "server": "block"
"disable_cache": true
} }
], ]}
"strategy": "ipv4_only"
}

View File

@ -14,6 +14,7 @@
] ]
}, },
"1.1.1.1", "1.1.1.1",
"8.8.8.8",
"https://dns.google/dns-query" "https://dns.google/dns-query"
], ],
"queryStrategy": "UseIPv4" "queryStrategy": "UseIPv4"

View File

@ -1,8 +1,8 @@
{ {
"servers": [ "servers": [
{ {
"tag": "out_dns", "tag": "remote",
"address": "8.8.8.8", "address": "tcp://8.8.8.8",
"detour": "proxy" "detour": "proxy"
}, },
{ {