mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-11-18 19:15:03 +03:00
32f96298f8
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.
37 lines
1.0 KiB
JSON
37 lines
1.0 KiB
JSON
{
|
|
"udp": [
|
|
{ "type": "salamander", "settings": { "password": "swordfish" } },
|
|
{ "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": {
|
|
"reset": "60",
|
|
"noise": [
|
|
{ "type": "rand", "rand": "10-20", "delay": "10-16" },
|
|
{ "type": "str", "packet": ["ping"], "delay": "5" }
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "xdns",
|
|
"settings": {
|
|
"domains": ["example.com:txt", "example.org:a"],
|
|
"resolvers": ["example.com:txt+udp://1.1.1.1:53"]
|
|
}
|
|
},
|
|
{
|
|
"type": "xicmp",
|
|
"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"]
|
|
}
|
|
}
|
|
]
|
|
}
|