Files
3x-ui-agent/internal/singbox/testdata/golden/hysteria2-salamander/expected-singbox.json
T
Muse 750a270955 ITEM6 B0: golden fixtures + fixture validation skeleton for sing-box migration
26 cases (protocol x representative transport): current-shape input,
expected sing-box fragment, and share-link baseline generated by running
current main@8e89960 GetLink. Blocked/partial cases (xhttp, kcp,
fallbacks, finalmask, vlessenc, removed SS ciphers, tunnel) record their
unmapped concepts under _b0 for the Q1 decision instead of fabricating
output. Link-route baselines only: JSON/Clash subscription families are
being removed wholesale per the 2026-10-23 decision, Q2 closed.
2026-10-22 18:14:58 +00:00

33 lines
1018 B
JSON

{
"inbounds": [
{
"type": "hysteria2",
"tag": "inbound-34443",
"listen": "203.0.113.10",
"listen_port": 34443,
"users": [
{
"name": "user@example.com",
"password": "fx-hy2-auth"
}
],
"obfs": {
"type": "salamander",
"password": "fx-obfs-pass"
},
"tls": {
"enabled": true,
"server_name": "hy.example.com",
"alpn": [
"h3"
],
"certificate_path": "/etc/x-ui/cert/fx.pem",
"key_path": "/etc/x-ui/cert/fx.key"
}
}
],
"_b0": {
"disposition": "direct",
"notes": "finalmask.udp[salamander] → hysteria2 obfs 直映(现行订阅链接已带 obfs/obfs-password 参数,服务端必须同值否则握手失败——见 expected-link.txt)。masquerade 未启用(type 空)省略。hysteriaSettings.udpIdleTimeout 在 sing-box hysteria2 无对应字段(QUIC 层自理),见规范 §4.2 小损项,随 Q1 一并确认。"
}
}