diff --git a/docs/config.yaml b/docs/config.yaml index c71f0d103..44741d353 100644 --- a/docs/config.yaml +++ b/docs/config.yaml @@ -1197,7 +1197,7 @@ proxies: # socks5 server: server_ip/domain # 1.2.3.4 or domain port: 443 key: "" # 如果你使用sudoku生成的ED25519密钥对,请填写密钥对中的私钥,否则填入和服务端相同的uuid - aead-method: chacha20-poly1305 # 可选:chacha20-poly1305、aes-128-gcm、none(不建议;且 enable-pure-downlink=false 时不可用) + aead-method: chacha20-poly1305 # 可选:chacha20-poly1305、aes-128-gcm、none(不建议;none 不提供 AEAD 保护) padding-min: 2 # 最小填充率(0-100) padding-max: 7 # 最大填充率(0-100,必须 >= padding-min) table-type: prefer_ascii # 可选值:prefer_ascii、prefer_entropy、up_ascii_down_entropy、up_entropy_down_ascii @@ -1211,7 +1211,7 @@ proxies: # socks5 # host: "" # 可选:覆盖 Host/SNI(支持 example.com 或 example.com:443);仅在 mode 为 stream/poll/auto/ws 时生效 # path-root: "" # 可选:HTTP 隧道端点一级路径前缀(双方需一致),例如 "aabbcc" 或 "/aabbcc/" => /aabbcc/session、/aabbcc/stream、/aabbcc/api/v1/upload、/aabbcc/ws # multiplex: "off" # 可选字符串:off(默认)、auto(复用底层 HTTP 连接,减少建链 RTT)、on(Sudoku mux 单隧道多目标;仅在 mode=stream/poll/auto 生效;ws 强制 off) - enable-pure-downlink: false # 可选:false=带宽优化下行(更快,要求 aead-method != none);true=纯 Sudoku 下行 + enable-pure-downlink: false # 可选:false=带宽优化下行;true=纯 Sudoku 下行 # anytls - name: anytls @@ -1799,14 +1799,14 @@ listeners: port: 8443 # 仅支持单端口 listen: 0.0.0.0 key: "" # 如果你使用sudoku生成的ED25519密钥对,此处是密钥对中的公钥,当然,你也可以仅仅使用任意uuid充当key - aead-method: chacha20-poly1305 # 可选:chacha20-poly1305、aes-128-gcm、none(不建议;且 enable-pure-downlink=false 时不可用) + aead-method: chacha20-poly1305 # 可选:chacha20-poly1305、aes-128-gcm、none(不建议;none 不提供 AEAD 保护) padding-min: 1 # 最小填充率(0-100) padding-max: 15 # 最大填充率(0-100,必须 >= padding-min) table-type: prefer_ascii # 可选值:prefer_ascii、prefer_entropy、up_ascii_down_entropy、up_entropy_down_ascii # custom-table: xpxvvpvv # 可选,自定义字节布局,必须包含2个x、2个p、4个v,可随意组合;只对 entropy 方向生效 # custom-tables: ["xpxvvpvv", "vxpvxvvp"] # 可选,自定义字节布局列表(x/v/p),用于多表轮换;非空时覆盖 custom-table handshake-timeout: 5 # 可选(秒) - enable-pure-downlink: false # 可选:false=带宽优化下行(更快,要求 aead-method != none);true=纯 Sudoku 下行 + enable-pure-downlink: false # 可选:false=带宽优化下行;true=纯 Sudoku 下行 # 推荐:使用 httpmask 对象统一管理 HTTPMask 相关字段: httpmask: disable: false # true 禁用所有 HTTP 伪装/隧道 diff --git a/transport/sudoku/config.go b/transport/sudoku/config.go index c9a5ccb36..6f72330f7 100644 --- a/transport/sudoku/config.go +++ b/transport/sudoku/config.go @@ -33,7 +33,7 @@ type ProtocolConfig struct { PaddingMax int // EnablePureDownlink enables the pure Sudoku downlink mode. - // When false, the connection uses the bandwidth-optimized packed downlink (requires AEAD). + // When false, the connection uses the bandwidth-optimized packed downlink. EnablePureDownlink bool // Client-only: final target "host:port". @@ -101,10 +101,6 @@ func (c *ProtocolConfig) Validate() error { return fmt.Errorf("padding-max (%d) must be >= padding-min (%d)", c.PaddingMax, c.PaddingMin) } - if !c.EnablePureDownlink && c.AEADMethod == "none" { - return fmt.Errorf("bandwidth optimized downlink requires AEAD") - } - if c.HandshakeTimeoutSeconds < 0 { return fmt.Errorf("handshake-timeout must be >= 0, got %d", c.HandshakeTimeoutSeconds) }