sing 您所在的位置:网站首页 移动h2-2配置文件解码 sing

sing

2023-04-30 17:32| 来源: 网络整理| 查看: 265

我选上 开启Mux多路复用。测试了添加 VMESS ss trojan 3种,我看到你做了 trojan 对应sing-box的配置了

生成的配置如下。我不知道你怎么规划Mux这个对于Sing-box里的选项,我自己用测试了 Mux搭shadowtls 和 trojan 2种组合。

你现在是只给的 smux 和官方文档推荐的 4 4 的默认值。sing-box最新1.3 beta9 版本又加了padding这个参数

http://sing-box.sagernet.org/configuration/shared/multiplex/

"multiplex": { "enabled": true, "protocol": "smux", "max_connections": 4, "min_streams": 4, "max_streams": 0 }

我觉得 max_connections min_streams 这2个参数你默认就给4,不给用户自己填的菜单。

1

我现在想到的是你可以在这儿,做2个选项框。当用户把 开启Mux多路复用 选中后出现,第1个框做 protocol 值的选项 http://sing-box.sagernet.org/zh/configuration/shared/multiplex/#protocol

第2个框做 http://sing-box.sagernet.org/configuration/shared/multiplex/#padding padding的true 和 false 选项。

补充出现这2个框后,不给空白选项,你给默认值吧,比如默认是h2mux padding true

比如我测试的 trojan REALITY h2mux padding 配置

{ "type": "trojan", "tag": "proxy", "server": "", // 服务端的 IP "server_port": 443, "password": "chika", "tls": { "enabled": true, "server_name": "", // 与服务端一致 "utls": { "enabled": true, "fingerprint": "chrome" // 使用 uTLS 库模拟客户端 TLS 指纹 }, "reality": { "enabled": true, "public_key": "", // 服务端执行 ./sing-box generate reality-keypair 生成,私钥对应的公钥,填 "PublicKey" 的值 "short_id": "" // 与服务端一致 } }, "multiplex": { "enabled": true, "protocol": "h2mux", "max_connections": 4, "min_streams": 4, "padding": true } },


【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有