feat(finalmask): sync transport with upstream Xray core changes

Consolidate the eight legacy mKCP/header UDP mask types into a single mkcp-legacy type ({header, value}), simplify xicmp to {dgram, ips}, and add the new realm UDP mask type, matching the updated Xray-core wire format. Update the FinalMask schema enum, the transport form, the mKCP seeding default, and the backend KCP share-link translation. Refresh golden fixtures/snapshots and add backend coverage for the mapping.
This commit is contained in:
MHSanaei
2026-06-01 10:12:51 +02:00
parent c5ff166056
commit 32f96298f8
9 changed files with 154 additions and 79 deletions
@@ -4,7 +4,7 @@
],
"udp": [
{ "type": "salamander", "settings": { "password": "swordfish" } },
{ "type": "header-wireguard" }
{ "type": "mkcp-legacy", "settings": { "header": "wireguard", "value": "" } }
],
"quicParams": {
"congestion": "brutal",
@@ -1,9 +1,9 @@
{
"udp": [
{ "type": "salamander", "settings": { "password": "swordfish" } },
{ "type": "mkcp-aes128gcm", "settings": { "password": "abcdef0123456789" } },
{ "type": "header-dns", "settings": { "domain": "cloudflare.com" } },
{ "type": "header-wireguard" },
{ "type": "mkcp-legacy", "settings": { "header": "", "value": "abcdef0123456789" } },
{ "type": "mkcp-legacy", "settings": { "header": "dns", "value": "cloudflare.com" } },
{ "type": "mkcp-legacy", "settings": { "header": "wireguard", "value": "" } },
{
"type": "noise",
"settings": {
@@ -23,7 +23,14 @@
},
{
"type": "xicmp",
"settings": { "listenIp": "0.0.0.0", "id": 0 }
"settings": { "dgram": false, "ips": [] }
},
{
"type": "realm",
"settings": {
"url": "realm://public@example.com/my-realm",
"stunServers": ["stun.l.google.com:19302", "global.stun.twilio.com:3478"]
}
}
]
}