feat: allow using suite on non-nixos systems
This commit is contained in:
63 files changed
+3572
-523
No files matched your search
@@ -212,10 +212,12 @@ let
|
||||
});
|
||||
in
|
||||
{
|
||||
# The local proxy, ready for TProxy. A rootless host can neither take transparent
|
||||
# connections nor mark sockets: there it is the SOCKS/HTTP listener alone.
|
||||
tproxy = mkConfig {
|
||||
enableMixed = true;
|
||||
enableTProxy = true;
|
||||
useOutboundRoutingMark = true;
|
||||
enableTProxy = constants.privileged;
|
||||
useOutboundRoutingMark = constants.privileged;
|
||||
xrayDnsBridgePort = xrayDnsBridgePorts.socks;
|
||||
};
|
||||
|
||||
|
||||
@@ -264,10 +264,11 @@ in
|
||||
# shape out of the same backend primitives.
|
||||
inherit mkDnsServer;
|
||||
|
||||
# As sing-box's: without TProxy and marks on a rootless host.
|
||||
tproxy = mkConfig {
|
||||
enableMixed = true;
|
||||
enableTProxy = true;
|
||||
useOutboundRoutingMark = true;
|
||||
enableTProxy = constants.privileged;
|
||||
useOutboundRoutingMark = constants.privileged;
|
||||
};
|
||||
|
||||
tun = mkConfig {
|
||||
|
||||
Reference in new issue
Block a user