fix: attempt to mitigate client<-server dropped packages
This commit is contained in:
14 files changed
+1271
-452
No files matched your search
@@ -2,7 +2,12 @@
|
||||
{ lib, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) literalExpression mkOption mkEnableOption types;
|
||||
inherit (lib)
|
||||
literalExpression
|
||||
mkOption
|
||||
mkEnableOption
|
||||
types
|
||||
;
|
||||
in
|
||||
{
|
||||
options.services.proxy-suite.proxy = {
|
||||
@@ -11,8 +16,10 @@ in
|
||||
default = false;
|
||||
description = ''
|
||||
Whether to configure and run the proxy backend services.
|
||||
This is disabled by default; enable it explicitly and choose exactly
|
||||
one backend with proxy.singBox.enable or proxy.xray.enable.
|
||||
This is disabled by default; enable it explicitly and choose at least
|
||||
one backend with proxy.singBox.enable or proxy.xray.enable. Enabling
|
||||
both runs sing-box as the frontend and XRay as a sidecar for outbounds
|
||||
that require XRay.
|
||||
'';
|
||||
};
|
||||
|
||||
|
||||
@@ -159,6 +159,22 @@ let
|
||||
example = "hy2://password@example.com:443?sni=example.com";
|
||||
};
|
||||
|
||||
backend = mkOption {
|
||||
type = types.enum [
|
||||
"auto"
|
||||
"sing-box"
|
||||
"xray"
|
||||
];
|
||||
default = "auto";
|
||||
description = ''
|
||||
Backend preference for this outbound when both SingBox and XRay are
|
||||
enabled. "auto" uses SingBox when the URL or JSON can be represented
|
||||
there and falls back to XRay for XRay-only transports such as XHTTP
|
||||
or ECH. Ignored by single-backend configurations.
|
||||
'';
|
||||
example = "xray";
|
||||
};
|
||||
|
||||
singBoxJson = mkOption {
|
||||
type = types.nullOr types.attrs;
|
||||
default = null;
|
||||
|
||||
Reference in new issue
Block a user