fix: xray tun improvements
This commit is contained in:
13 files changed
+110
-159
No files matched your search
@@ -71,7 +71,10 @@ let
|
||||
{
|
||||
enabled = true;
|
||||
destOverride = [ "fakedns" ];
|
||||
metadataOnly = true;
|
||||
# Fake IPs only live in memory: after a restart an app still holding one gets its
|
||||
# domain back from TLS/HTTP/QUIC instead of a dead end. Real IPs are left alone;
|
||||
# the cost is up to 200 ms before a server-speaks-first protocol (SSH, SMTP) starts.
|
||||
metadataOnly = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -142,10 +145,6 @@ let
|
||||
enableTunFakeDns ? false,
|
||||
}:
|
||||
let
|
||||
tunDnsServers = [
|
||||
(if (proxyCfg.routing.default == "proxy") then proxyCfg.dns.remote.address else proxyCfg.dns.local.address)
|
||||
(if (proxyCfg.routing.default == "proxy") then proxyCfg.dns.local.address else proxyCfg.dns.remote.address)
|
||||
];
|
||||
tunSniffing = mkSniffing { fakeDnsOnly = enableTunFakeDns; };
|
||||
dnsConfig =
|
||||
if enableTunFakeDns then
|
||||
@@ -215,9 +214,7 @@ let
|
||||
name = tunInterface;
|
||||
mtu = tunMtu;
|
||||
gateway = [ tunAddress ] ++ lib.optionals (tunIPv6Address != null) [ tunIPv6Address ];
|
||||
dns = tunDnsServers;
|
||||
userLevel = 0;
|
||||
autoOutboundsInterface = "auto";
|
||||
};
|
||||
sniffing = tunSniffing;
|
||||
};
|
||||
|
||||
@@ -280,11 +280,18 @@ let
|
||||
|
||||
tunAutoRouteTableIndex = 2022;
|
||||
tunAutoRouteRulePriority = 9000;
|
||||
# Keeps proxy-suite's own daemons (the inbound XRay, replies to its clients included)
|
||||
# out of the pure-XRay global TUN.
|
||||
xrayTunServiceUserRulePriority = 8995;
|
||||
xrayTunPerAppTproxyRulePriority = 8996;
|
||||
xrayTunPerAppTunRulePriority = 8997;
|
||||
# Pure-XRay global TUN, below 8998/8999 (AmneziaWG and tg-ws-proxy bypasses).
|
||||
# proxyMark sockets and proxy-suite's own daemons (the inbound XRay, replies to its
|
||||
# clients included) stay out of the TUN.
|
||||
xrayTunMarkBypassRulePriority = 8992;
|
||||
xrayTunServiceUserRulePriority = 8993;
|
||||
xrayTunPerAppTproxyRulePriority = 8994;
|
||||
xrayTunPerAppTunRulePriority = 8995;
|
||||
# DNS stays in the TUN for fakedns, even to a LAN resolver.
|
||||
xrayTunDnsRulePriority = 8996;
|
||||
# Routes more specific than default (LAN, container bridges) skip the TUN, so
|
||||
# replies to connections from there leave the way they came.
|
||||
xrayTunMainRulePriority = 8997;
|
||||
|
||||
xrayGlobalTunIPv6Address = "fd66:19::1/64";
|
||||
xrayGlobalTunIPv6RoutePrefix = "fd66:19::/64";
|
||||
|
||||
@@ -68,7 +68,6 @@ let
|
||||
perAppTproxyRulesFile
|
||||
ip
|
||||
nft
|
||||
awk
|
||||
seqBin
|
||||
sleepBin
|
||||
;
|
||||
|
||||
@@ -11,17 +11,11 @@
|
||||
perAppTproxyRulesFile,
|
||||
ip,
|
||||
nft,
|
||||
awk,
|
||||
seqBin,
|
||||
sleepBin,
|
||||
}:
|
||||
|
||||
let
|
||||
defaultUplinkIPv4Source = builders.mkDefaultUplinkIPv4Source {
|
||||
inherit ip awk;
|
||||
errorMessage = "proxy-suite: could not determine the default uplink IPv4 address for app TUN";
|
||||
};
|
||||
|
||||
inherit (constants)
|
||||
xrayPerAppTunIPv6Address
|
||||
xrayPerAppTunIPv6RoutePrefix
|
||||
@@ -47,7 +41,6 @@ let
|
||||
tun6_route_prefix=${lib.escapeShellArg xrayPerAppTunIPv6RoutePrefix}
|
||||
tun_addr=""
|
||||
tun_route_prefix=""
|
||||
uplink_addr=""
|
||||
|
||||
${builders.cidrNetworkFunction}
|
||||
|
||||
@@ -68,12 +61,12 @@ let
|
||||
${builders.mkIpRouteFlushTable { inherit ip; family = "-6"; table = perAppRoutingTun.routeTable; }}
|
||||
${nft} -f ${perAppTunChainFile}
|
||||
${perAppTunWaitForInterface}
|
||||
${defaultUplinkIPv4Source}
|
||||
tun_addr="''${tun_cidr%%/*}"
|
||||
tun_route_prefix="$(cidr_network "$tun_cidr")"
|
||||
${ip} -4 addr replace "$tun_cidr" dev ${lib.escapeShellArg perAppRoutingTun.interface}
|
||||
${ip} -4 route replace "$tun_route_prefix" dev ${lib.escapeShellArg perAppRoutingTun.interface} src "$tun_addr" table ${toString perAppRoutingTun.routeTable}
|
||||
${ip} -4 route replace default dev ${lib.escapeShellArg perAppRoutingTun.interface} src "$uplink_addr" table ${toString perAppRoutingTun.routeTable}
|
||||
# No uplink src, as in xrayTunUpScript: it goes stale when the uplink address changes.
|
||||
${ip} -4 route replace default dev ${lib.escapeShellArg perAppRoutingTun.interface} table ${toString perAppRoutingTun.routeTable}
|
||||
${ip} -4 rule add fwmark ${toString perAppRoutingTun.fwmark} table ${toString perAppRoutingTun.routeTable} 2>/dev/null || true
|
||||
${lib.optionalString pureXrayEnabled ''
|
||||
${ip} -6 addr replace "$tun6_cidr" dev ${lib.escapeShellArg perAppRoutingTun.interface}
|
||||
|
||||
@@ -16,17 +16,45 @@ let
|
||||
inherit (constants)
|
||||
tunAutoRouteTableIndex
|
||||
tunAutoRouteRulePriority
|
||||
xrayTunMarkBypassRulePriority
|
||||
xrayTunServiceUserRulePriority
|
||||
xrayTunPerAppTproxyRulePriority
|
||||
xrayTunPerAppTunRulePriority
|
||||
xrayTunDnsRulePriority
|
||||
xrayTunMainRulePriority
|
||||
xrayGlobalTunIPv6Address
|
||||
xrayGlobalTunIPv6RoutePrefix
|
||||
;
|
||||
|
||||
defaultUplinkIPv4Source = builders.mkDefaultUplinkIPv4Source {
|
||||
inherit ip;
|
||||
awk = "${pkgs.gawk}/bin/awk";
|
||||
errorMessage = "proxy-suite: could not determine the default uplink IPv4 address for XRay TUN";
|
||||
deleteXrayTunRules = lib.concatMapStrings (
|
||||
family:
|
||||
lib.concatMapStrings (priority: builders.mkIpRuleDeleteByPriority { inherit ip family priority; }) [
|
||||
xrayTunMarkBypassRulePriority
|
||||
xrayTunServiceUserRulePriority
|
||||
xrayTunPerAppTproxyRulePriority
|
||||
xrayTunPerAppTunRulePriority
|
||||
xrayTunDnsRulePriority
|
||||
xrayTunMainRulePriority
|
||||
tunAutoRouteRulePriority
|
||||
]
|
||||
) [ "-4" "-6" ];
|
||||
|
||||
# Replies to connections from outside (sshd, a game server, anything listening) take
|
||||
# proxyMark, so the fwmark rule sends them back out the way they came instead of into
|
||||
# the TUN, where nothing expects them. Locally started connections stay "original".
|
||||
xrayTunReplyTable = "proxy_suite_xray_tun";
|
||||
xrayTunReplyRules = pkgs.writeText "proxy-suite-xray-tun.nft" ''
|
||||
table inet ${xrayTunReplyTable} {
|
||||
chain output {
|
||||
type route hook output priority mangle; policy accept;
|
||||
ct direction reply meta mark 0 meta mark set ${toString globalTproxy.proxyMark}
|
||||
}
|
||||
}
|
||||
'';
|
||||
deleteXrayTunReplyTable = builders.mkNftDeleteTable {
|
||||
inherit nft;
|
||||
family = "inet";
|
||||
table = xrayTunReplyTable;
|
||||
};
|
||||
in
|
||||
{
|
||||
@@ -38,7 +66,6 @@ in
|
||||
tun6_route_prefix=${lib.escapeShellArg xrayGlobalTunIPv6RoutePrefix}
|
||||
tun_addr=""
|
||||
tun_route_prefix=""
|
||||
uplink_addr=""
|
||||
|
||||
${builders.cidrNetworkFunction}
|
||||
|
||||
@@ -54,15 +81,9 @@ in
|
||||
exit 1
|
||||
fi
|
||||
|
||||
${defaultUplinkIPv4Source}
|
||||
|
||||
while ${ip} -4 rule del pref ${toString xrayTunPerAppTproxyRulePriority} 2>/dev/null; do :; done
|
||||
while ${ip} -4 rule del pref ${toString xrayTunPerAppTunRulePriority} 2>/dev/null; do :; done
|
||||
while ${ip} -4 rule del pref ${toString xrayTunServiceUserRulePriority} 2>/dev/null; do :; done
|
||||
while ${ip} -6 rule del pref ${toString xrayTunServiceUserRulePriority} 2>/dev/null; do :; done
|
||||
while ${ip} -4 rule del pref ${toString tunAutoRouteRulePriority} 2>/dev/null; do :; done
|
||||
while ${ip} -6 rule del pref ${toString xrayTunPerAppTunRulePriority} 2>/dev/null; do :; done
|
||||
while ${ip} -6 rule del pref ${toString tunAutoRouteRulePriority} 2>/dev/null; do :; done
|
||||
${deleteXrayTunRules}
|
||||
${deleteXrayTunReplyTable}
|
||||
${nft} -f ${xrayTunReplyRules}
|
||||
|
||||
tun_addr="''${tun_cidr%%/*}"
|
||||
tun_route_prefix="$(cidr_network "$tun_cidr")"
|
||||
@@ -70,7 +91,9 @@ in
|
||||
${ip} -4 addr replace "$tun_cidr" dev ${lib.escapeShellArg globalTun.interface}
|
||||
${ip} -6 addr replace "$tun6_cidr" dev ${lib.escapeShellArg globalTun.interface}
|
||||
${ip} -4 route replace "$tun_route_prefix" dev ${lib.escapeShellArg globalTun.interface} src "$tun_addr" table ${toString tunAutoRouteTableIndex}
|
||||
${ip} -4 route replace default dev ${lib.escapeShellArg globalTun.interface} src "$uplink_addr" table ${toString tunAutoRouteTableIndex}
|
||||
# No uplink src: it goes stale when the uplink address changes, and XRay's own sockets
|
||||
# (routed by uid and mark, not bound to an interface) pick theirs from main.
|
||||
${ip} -4 route replace default dev ${lib.escapeShellArg globalTun.interface} table ${toString tunAutoRouteTableIndex}
|
||||
${ip} -6 route replace "$tun6_route_prefix" dev ${lib.escapeShellArg globalTun.interface} table ${toString tunAutoRouteTableIndex}
|
||||
${ip} -6 route replace default dev ${lib.escapeShellArg globalTun.interface} table ${toString tunAutoRouteTableIndex}
|
||||
${lib.optionalString perAppRoutingTproxy.enable ''
|
||||
@@ -83,6 +106,12 @@ in
|
||||
service_uid=$(${pkgs.coreutils}/bin/id -u ${constants.serviceUser})
|
||||
${ip} -4 rule add pref ${toString xrayTunServiceUserRulePriority} uidrange "$service_uid-$service_uid" lookup main
|
||||
${ip} -6 rule add pref ${toString xrayTunServiceUserRulePriority} uidrange "$service_uid-$service_uid" lookup main
|
||||
for family in -4 -6; do
|
||||
${ip} "$family" rule add pref ${toString xrayTunMarkBypassRulePriority} fwmark ${toString globalTproxy.proxyMark} lookup main
|
||||
${ip} "$family" rule add pref ${toString xrayTunDnsRulePriority} ipproto udp dport 53 table ${toString tunAutoRouteTableIndex}
|
||||
${ip} "$family" rule add pref ${toString xrayTunDnsRulePriority} ipproto tcp dport 53 table ${toString tunAutoRouteTableIndex}
|
||||
${ip} "$family" rule add pref ${toString xrayTunMainRulePriority} lookup main suppress_prefixlength 0
|
||||
done
|
||||
${ip} -4 rule add pref ${toString tunAutoRouteRulePriority} not fwmark ${toString globalTproxy.proxyMark} table ${toString tunAutoRouteTableIndex}
|
||||
${ip} -6 rule add pref ${toString tunAutoRouteRulePriority} not fwmark ${toString globalTproxy.proxyMark} table ${toString tunAutoRouteTableIndex}
|
||||
'';
|
||||
@@ -127,31 +156,8 @@ in
|
||||
${builders.mkNftDeleteTable { inherit nft; family = "inet"; table = "sing-box"; }}
|
||||
${builders.mkIpRuleDeleteByTable { inherit ip; family = "-4"; table = tunAutoRouteTableIndex; }}
|
||||
${builders.mkIpRuleDeleteByTable { inherit ip; family = "-6"; table = tunAutoRouteTableIndex; }}
|
||||
${builders.mkIpRuleDeleteByPriority {
|
||||
inherit ip;
|
||||
family = "-4";
|
||||
priority = xrayTunPerAppTproxyRulePriority;
|
||||
}}
|
||||
${builders.mkIpRuleDeleteByPriority {
|
||||
inherit ip;
|
||||
family = "-4";
|
||||
priority = xrayTunPerAppTunRulePriority;
|
||||
}}
|
||||
${builders.mkIpRuleDeleteByPriority {
|
||||
inherit ip;
|
||||
family = "-6";
|
||||
priority = xrayTunPerAppTunRulePriority;
|
||||
}}
|
||||
${builders.mkIpRuleDeleteByPriority {
|
||||
inherit ip;
|
||||
family = "-4";
|
||||
priority = xrayTunServiceUserRulePriority;
|
||||
}}
|
||||
${builders.mkIpRuleDeleteByPriority {
|
||||
inherit ip;
|
||||
family = "-6";
|
||||
priority = xrayTunServiceUserRulePriority;
|
||||
}}
|
||||
${deleteXrayTunRules}
|
||||
${deleteXrayTunReplyTable}
|
||||
${builders.mkIpRouteFlushTable { inherit ip; family = "-4"; table = tunAutoRouteTableIndex; }}
|
||||
${builders.mkIpRouteFlushTable { inherit ip; family = "-6"; table = tunAutoRouteTableIndex; }}
|
||||
${builders.mkIpLinkDelete { inherit ip; interface = globalTun.interface; }}
|
||||
|
||||
@@ -9,20 +9,6 @@
|
||||
|
||||
if pureXrayEnabled then
|
||||
''
|
||||
def xray_bind_outbound($interface):
|
||||
# A loopback hop (the WARP tunnel, the OpenSSH listener) cannot leave through the uplink.
|
||||
if $interface == "" or .protocol == "blackhole" or .protocol == "dns"
|
||||
or ((.settings.address? // "") | test("^(127\\.|::1$|localhost$)")) then
|
||||
.
|
||||
else
|
||||
.streamSettings = (.streamSettings // {})
|
||||
| .streamSettings.sockopt = (.streamSettings.sockopt // {})
|
||||
| if (.streamSettings.sockopt.interface? // "") == "" then
|
||||
.streamSettings.sockopt.interface = $interface
|
||||
else
|
||||
.
|
||||
end
|
||||
end;
|
||||
def xray_proxy_rule_target($single_tag):
|
||||
if $single_tag != "" then
|
||||
{outboundTag:$single_tag}
|
||||
@@ -52,15 +38,7 @@ if pureXrayEnabled then
|
||||
+ [.dns.servers[] | select((.tag? // "") == $dns_final)]
|
||||
+ [.dns.servers[] | select((.tag? // "") != "fakedns" and (.tag? // "") != $dns_final)])
|
||||
end;
|
||||
def xray_tun_dns_addresses($dns_final; $local_addr; $remote_addr):
|
||||
if $dns_final == "local" then
|
||||
[$local_addr, $remote_addr]
|
||||
elif $dns_final == "remote" then
|
||||
[$remote_addr, $local_addr]
|
||||
else
|
||||
[$remote_addr, $local_addr]
|
||||
end;
|
||||
.outbounds = (($obs + .outbounds) | map(xray_bind_outbound($xray_bind_interface)))
|
||||
.outbounds = ($obs + .outbounds)
|
||||
| if $xray_loglevel == "" then . else .log.loglevel = $xray_loglevel end
|
||||
| if $auth_enabled then
|
||||
(.inbounds[] | select(.protocol == "socks" and .tag == "mixed-in") | .settings.auth) = "password"
|
||||
@@ -68,11 +46,12 @@ if pureXrayEnabled then
|
||||
else . end
|
||||
| if $xray_tun_dns_runtime then
|
||||
.dns.servers = xray_dns_server_order($dns_final)
|
||||
| if $dns_final == "" then
|
||||
.
|
||||
else
|
||||
(.inbounds[] | select(.protocol == "tun" and .tag == "tun-in") | .settings.dns) = xray_tun_dns_addresses($dns_final; $xray_dns_local_client; $xray_dns_remote_client)
|
||||
end
|
||||
# Without a domainStrategy a dial resolves through the system resolver, which under
|
||||
# the TUN (resolved's upstream queries included) hands out fake IPs. XRay's own DNS
|
||||
# client skips fakedns.
|
||||
| .outbounds |= map(
|
||||
if .protocol == "blackhole" or .protocol == "dns" or .protocol == "loopback" then .
|
||||
else .streamSettings.sockopt.domainStrategy //= "UseIPv4v6" end)
|
||||
else . end
|
||||
| if $route_enabled then
|
||||
.routing.rules = (xray_preserved_rules + $route_rules + [xray_final_rule($route_final; $xray_single_proxy_tag)])
|
||||
@@ -99,7 +78,7 @@ else
|
||||
[.route.rules[]
|
||||
| select(((.action? // "") == "hijack-dns")
|
||||
and (((.inbound? // []) | index("xray-dns-in")) != null))];
|
||||
.outbounds = $obs + .outbounds
|
||||
.outbounds = ($obs + .outbounds)
|
||||
| if $auth_enabled then
|
||||
(.inbounds[] | select(.type == "mixed" and .tag == "mixed-in") | .users) = [{username:$user,password:$password}]
|
||||
else . end
|
||||
|
||||
@@ -67,24 +67,11 @@ lib.optionalString hybridEnabled ''
|
||||
fi
|
||||
${jq} -n \
|
||||
--arg loglevel "$XRAY_LOGLEVEL" \
|
||||
--arg bind_interface "$XRAY_TUN_BIND_INTERFACE" \
|
||||
--argjson dns_port "$XRAY_SIDECAR_DNS_PORT" \
|
||||
--argjson inbounds "$XRAY_INBOUNDS_JSON" \
|
||||
--argjson outbounds "$XRAY_OUTBOUNDS_JSON" \
|
||||
--argjson route_rules "$XRAY_ROUTE_RULES_JSON" \
|
||||
'
|
||||
def bind_xray_sidecar($interface):
|
||||
if $interface == "" then
|
||||
.
|
||||
else
|
||||
.streamSettings = (.streamSettings // {})
|
||||
| .streamSettings.sockopt = (.streamSettings.sockopt // {})
|
||||
| if (.streamSettings.sockopt.interface? // "") == "" then
|
||||
.streamSettings.sockopt.interface = $interface
|
||||
else
|
||||
.
|
||||
end
|
||||
end;
|
||||
{
|
||||
log: {
|
||||
loglevel: (if $loglevel == "" then "warning" else $loglevel end),
|
||||
@@ -101,7 +88,7 @@ lib.optionalString hybridEnabled ''
|
||||
]
|
||||
},
|
||||
inbounds: $inbounds,
|
||||
outbounds: (($outbounds | map(bind_xray_sidecar($bind_interface))) + [{protocol:"freedom",tag:"direct"}]),
|
||||
outbounds: ($outbounds + [{protocol:"freedom",tag:"direct"}]),
|
||||
routing: {
|
||||
domainStrategy: "AsIs",
|
||||
rules: ($route_rules + [{type:"field",ip:["127.0.0.1"],port:$dns_port,outboundTag:"direct"}])
|
||||
|
||||
@@ -146,7 +146,6 @@ let
|
||||
configFile,
|
||||
routingMark ? null,
|
||||
enableLocalProxyAuth ? false,
|
||||
xrayTunEgressBinding ? false,
|
||||
xrayTunDnsRuntime ? false,
|
||||
xraySidecarBasePort ? xraySidecarBasePorts.socks,
|
||||
xrayDnsBridgePort ? xrayDnsBridgePorts.socks,
|
||||
@@ -161,7 +160,6 @@ let
|
||||
ROUTE_MODE_STATE_FILE="${routeModeStateFile}"
|
||||
BACKEND_JQ_FILTER=${lib.escapeShellArg backendJqFilterFile}
|
||||
XRAY_LOGLEVEL=""
|
||||
XRAY_TUN_BIND_INTERFACE=""
|
||||
XRAY_SINGLE_PROXY_TAG=""
|
||||
mkdir -p "$RUNTIME_DIR"
|
||||
OUTBOUNDS_JSON='[]'
|
||||
@@ -187,22 +185,6 @@ let
|
||||
XRAY_LOGLEVEL="$(tr -d '\r\n[:space:]' < "${xrayLoglevelFile}" 2>/dev/null || true)"
|
||||
fi
|
||||
''}
|
||||
${lib.optionalString xrayTunEgressBinding ''
|
||||
XRAY_TUN_BIND_INTERFACE="$(${pkgs.iproute2}/bin/ip -4 route get 1.1.1.1 mark ${toString globalTproxy.proxyMark} 2>/dev/null | ${pkgs.gawk}/bin/awk '
|
||||
/dev/ {
|
||||
for (i = 1; i <= NF; i++) {
|
||||
if ($i == "dev" && i + 1 <= NF) {
|
||||
print $(i + 1)
|
||||
exit
|
||||
}
|
||||
}
|
||||
}
|
||||
')"
|
||||
if [ -z "$XRAY_TUN_BIND_INTERFACE" ]; then
|
||||
echo "proxy-suite: could not determine the default uplink interface for XRay TUN" >&2
|
||||
exit 1
|
||||
fi
|
||||
''}
|
||||
|
||||
${routeModeCaseBlock}
|
||||
|
||||
@@ -350,12 +332,9 @@ let
|
||||
--arg dns_final "$DNS_FINAL" \
|
||||
--argjson clear_dns_rules "$CLEAR_DNS_RULES" \
|
||||
--arg xray_loglevel "$XRAY_LOGLEVEL" \
|
||||
--arg xray_bind_interface "$XRAY_TUN_BIND_INTERFACE" \
|
||||
--arg xray_single_proxy_tag "$XRAY_SINGLE_PROXY_TAG" \
|
||||
--argjson xray_selectable "$SELECTABLE_TAGS_JSON" \
|
||||
--argjson xray_tun_dns_runtime ${if xrayTunDnsRuntime then "true" else "false"} \
|
||||
--arg xray_dns_local_client ${lib.escapeShellArg proxyCfg.dns.local.address} \
|
||||
--arg xray_dns_remote_client ${lib.escapeShellArg proxyCfg.dns.remote.address} \
|
||||
-f "$BACKEND_JQ_FILTER" \
|
||||
"${configFile}" > "$RUNTIME_DIR/config.json"
|
||||
${lib.optionalString excludeServiceUserFromTun ''
|
||||
@@ -446,7 +425,6 @@ let
|
||||
runtimeDir = "/run/proxy-suite-tun";
|
||||
configFile = tunFile;
|
||||
routingMark = if pureXrayEnabled then globalTproxy.proxyMark else null;
|
||||
xrayTunEgressBinding = xrayEnabled;
|
||||
xrayTunDnsRuntime = pureXrayEnabled;
|
||||
xraySidecarBasePort = xraySidecarBasePorts.tun;
|
||||
xrayDnsBridgePort = xrayDnsBridgePorts.tun;
|
||||
@@ -458,7 +436,6 @@ let
|
||||
runtimeDir = "/run/proxy-suite-per-app-tun";
|
||||
configFile = perAppTunFile;
|
||||
routingMark = if xrayEnabled || globalTproxy.enable then globalTproxy.proxyMark else null;
|
||||
xrayTunEgressBinding = xrayEnabled;
|
||||
xrayTunDnsRuntime = pureXrayEnabled;
|
||||
xraySidecarBasePort = xraySidecarBasePorts.perAppTun;
|
||||
xrayDnsBridgePort = xrayDnsBridgePorts.perAppTun;
|
||||
|
||||
Reference in new issue
Block a user