mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-04 01:17:15 +00:00
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:
@@ -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"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user