-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(singbox): Support network=tcp in VMESS/VLESS #274
Conversation
❌ Deploy Preview for surgio-documentation failed.
|
感谢共享代码。之前Singbox的支持也是社区贡献的,可能遗漏了这个点。麻烦可以顺便看看测试用例吗? |
好的,我修改后生成的 singbox 配置的 vless 节点是这样: {
"type": "vless",
"tag": "自建A2",
"server": "www.example.com",
"server_port": 12345,
"uuid": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"flow": "xtls-rprx-vision",
"tls": {
"enabled": true,
"utls": {
"enabled": true,
"fingerprint": "chrome"
},
"reality": {
"enabled": true,
"public_key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
"short_id": "xxxxxxxxxxxxx"
},
"server_name": "www.example.com"
}
} 对应的 surgio provider 配置是这样: {
nodeName: "自建A2",
type: "vless",
hostname: "www.example.com",
method: "none",
network: "tcp",
port: 12345,
uuid: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
flow: "xtls-rprx-vision",
sni: "www.example.com",
udpRelay: true,
clientFingerprint: "chrome",
realityOpts: {
shortId: "xxxxxxxxxxxxx",
publicKey: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
}
} |
可以修改一下用例吗,通过 CI 就能合并了 |
噢噢,我试着改一下。抱歉之前没理解意思。 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #274 +/- ##
=======================================
Coverage 75.79% 75.80%
=======================================
Files 66 66
Lines 2768 2769 +1
Branches 720 720
=======================================
+ Hits 2098 2099 +1
Misses 412 412
Partials 258 258 ☔ View full report in Codecov by Sentry. |
感谢! |
singbox 的 vmess/vless 节点不用必须指定 transport ,也就是 surgio 里的 network 可以是默认值 tcp 。
我的 server 端用 singbox 配置的 vless+vision+reality 节点,本地修改后测试连接成功。
不过没有 vmess 节点,因此只测试了 vless ,并未测试 vmess ,只是根据文档中描述 transport 为非必须项,