Files
l-ui/internal/singbox/testdata/golden/hysteria2-salamander/input.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

100 lines
2.4 KiB
JSON

{
"case": "hysteria2-salamander",
"title": "Hysteria2 + finalmask salamander obfs",
"source": [
"frontend/src/lib/xray/inbound-defaults.ts",
"internal/sub/service.go genHysteriaLink 的 salamander 桥"
],
"disposition": "direct",
"risk": null,
"notes": "关键桥:现订阅代码已把 finalmask.udp[salamander] 翻成 hysteria2 URI 的 obfs 参数;sing-box hysteria2 原生 obfs{type:salamander,password} 直映——这是 finalmask 里唯一有直映路径的子集。masquerade 未启用(空)。",
"inbound": {
"id": 120,
"listen": "203.0.113.10",
"port": 34443,
"protocol": "hysteria",
"remark": "fx-hy2",
"tag": "inbound-34443",
"enable": true,
"settings": {
"version": 2,
"clients": [
{
"email": "user@example.com",
"limitIp": 0,
"totalGB": 0,
"expiryTime": 0,
"enable": true,
"tgId": 0,
"subId": "fxsubid000000001",
"comment": "",
"reset": 0,
"auth": "fx-hy2-auth"
}
]
},
"streamSettings": {
"network": "hysteria",
"security": "tls",
"hysteriaSettings": {
"version": 2,
"udpIdleTimeout": 60,
"masquerade": {
"type": "",
"dir": "",
"url": "",
"rewriteHost": false,
"statusCode": 0
}
},
"tlsSettings": {
"serverName": "hy.example.com",
"alpn": [
"h3"
],
"certificates": [
{
"certificateFile": "/etc/x-ui/cert/fx.pem",
"keyFile": "/etc/x-ui/cert/fx.key"
}
],
"settings": {
"fingerprint": "chrome"
}
},
"finalmask": {
"udp": [
{
"type": "salamander",
"settings": {
"password": "fx-obfs-pass"
}
}
]
}
},
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
],
"metadataOnly": false,
"routeOnly": false
}
},
"clientEmail": "user@example.com",
"client": {
"email": "user@example.com",
"limitIp": 0,
"totalGB": 0,
"expiryTime": 0,
"enable": true,
"tgId": 0,
"subId": "fxsubid000000001",
"comment": "",
"reset": 0,
"auth": "fx-hy2-auth"
}
}