mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 17:28:59 +08:00
fix xray routing
This commit is contained in:
parent
f132d8b53b
commit
5bb0f1f60d
@ -310,7 +310,7 @@ inputs:
|
||||
group = "v2ray";
|
||||
content = builtins.toJSON
|
||||
{
|
||||
log.loglevel = "warning";
|
||||
log.loglevel = "info";
|
||||
dns =
|
||||
{
|
||||
servers =
|
||||
@ -337,7 +337,7 @@ inputs:
|
||||
protocol = "dokodemo-door";
|
||||
settings = { network = "tcp,udp"; followRedirect = true; };
|
||||
streamSettings.sockopt.tproxy = "tproxy";
|
||||
sniffing = { enabled = true; destOverride = [ "http" "tls" ]; routeOnly = true; };
|
||||
sniffing = { enabled = true; destOverride = [ "http" "tls" "quic" ]; routeOnly = true; };
|
||||
tag = "common-in";
|
||||
}
|
||||
{
|
||||
@ -387,7 +387,7 @@ inputs:
|
||||
];
|
||||
routing =
|
||||
{
|
||||
domainStrategy = "IPIfNonMatch";
|
||||
domainStrategy = "AsIs";
|
||||
rules = builtins.map (rule: rule // { type = "field"; })
|
||||
[
|
||||
{ inboundTag = [ "dns-in" ]; outboundTag = "dns-out"; }
|
||||
|
Loading…
Reference in New Issue
Block a user