mirror of https://github.com/2dust/v2rayN
Adjust some config
parent
3c4ae902fd
commit
6b6169e248
|
@ -141,7 +141,7 @@
|
|||
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> 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> fingerprints = new() { "chrome", "firefox", "safari", "ios", "android", "edge", "360", "qq", "random", "randomized", "" };
|
||||
public static readonly List<string> userAgent = new() { "chrome", "firefox", "safari", "edge", "none" };
|
||||
|
|
|
@ -77,8 +77,8 @@ namespace v2rayN.Handler
|
|||
singboxConfig.log.level = _config.coreBasicItem.loglevel;
|
||||
break;
|
||||
|
||||
case "warn":
|
||||
singboxConfig.log.level = "warning";
|
||||
case "warning":
|
||||
singboxConfig.log.level = "warn";
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -323,6 +323,7 @@ namespace v2rayN.Handler
|
|||
public_key = node.publicKey,
|
||||
short_id = node.shortId
|
||||
};
|
||||
tls.insecure = false;
|
||||
}
|
||||
outbound.tls = tls;
|
||||
}
|
||||
|
@ -662,7 +663,7 @@ namespace v2rayN.Handler
|
|||
var normalDNS = item?.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);
|
||||
|
|
|
@ -1,5 +1,10 @@
|
|||
{
|
||||
"servers": [
|
||||
{
|
||||
"tag": "remote",
|
||||
"address": "tcp://8.8.8.8",
|
||||
"detour": "proxy"
|
||||
},
|
||||
{
|
||||
"tag": "local",
|
||||
"address": "223.5.5.5",
|
||||
|
@ -13,14 +18,10 @@
|
|||
"rules": [
|
||||
{
|
||||
"geosite": "cn",
|
||||
"server": "local",
|
||||
"disable_cache": true
|
||||
"server": "local"
|
||||
},
|
||||
{
|
||||
"geosite": "category-ads-all",
|
||||
"server": "block",
|
||||
"disable_cache": true
|
||||
"server": "block"
|
||||
}
|
||||
],
|
||||
"strategy": "ipv4_only"
|
||||
}
|
||||
]}
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
]
|
||||
},
|
||||
"1.1.1.1",
|
||||
"8.8.8.8",
|
||||
"https://dns.google/dns-query"
|
||||
],
|
||||
"queryStrategy": "UseIPv4"
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"servers": [
|
||||
{
|
||||
"tag": "out_dns",
|
||||
"address": "8.8.8.8",
|
||||
"tag": "remote",
|
||||
"address": "tcp://8.8.8.8",
|
||||
"detour": "proxy"
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue