fix xray routing

This commit is contained in:
陈浩南 2023-08-10 20:43:10 +08:00
parent f132d8b53b
commit 5bb0f1f60d

View File

@ -310,7 +310,7 @@ inputs:
group = "v2ray"; group = "v2ray";
content = builtins.toJSON content = builtins.toJSON
{ {
log.loglevel = "warning"; log.loglevel = "info";
dns = dns =
{ {
servers = servers =
@ -337,7 +337,7 @@ inputs:
protocol = "dokodemo-door"; protocol = "dokodemo-door";
settings = { network = "tcp,udp"; followRedirect = true; }; settings = { network = "tcp,udp"; followRedirect = true; };
streamSettings.sockopt.tproxy = "tproxy"; streamSettings.sockopt.tproxy = "tproxy";
sniffing = { enabled = true; destOverride = [ "http" "tls" ]; routeOnly = true; }; sniffing = { enabled = true; destOverride = [ "http" "tls" "quic" ]; routeOnly = true; };
tag = "common-in"; tag = "common-in";
} }
{ {
@ -387,7 +387,7 @@ inputs:
]; ];
routing = routing =
{ {
domainStrategy = "IPIfNonMatch"; domainStrategy = "AsIs";
rules = builtins.map (rule: rule // { type = "field"; }) rules = builtins.map (rule: rule // { type = "field"; })
[ [
{ inboundTag = [ "dns-in" ]; outboundTag = "dns-out"; } { inboundTag = [ "dns-in" ]; outboundTag = "dns-out"; }