mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 19:08:46 +08:00
fix xray routing
This commit is contained in:
parent
f132d8b53b
commit
5bb0f1f60d
@ -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"; }
|
||||||
|
Loading…
Reference in New Issue
Block a user