mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 12:44:22 +00:00
Round out Step 3b. Four more inbound fixtures complete the protocol set (http with two accounts, mixed with socks-style auth, tunnel with a port map, hysteria v1). Two parallel test files cover the other DUs: stream.test.ts walks tcp/ws/grpc fixtures through NetworkSettingsSchema, and security.test.ts walks none/tls/reality through SecuritySettingsSchema. Snapshot count is now 16 across three test files. The reality fixture locks in the array form of serverNames/shortIds (the panel class stores them comma-joined internally but they ship as arrays on the wire). The TLS fixture pins the file-vs-inline cert DU on the file branch. Stream coverage for httpupgrade/xhttp/kcp and security mixed-with-stream combos follow in the next turn, alongside the shadow harness.
13 lines
247 B
JSON
13 lines
247 B
JSON
{
|
|
"protocol": "tunnel",
|
|
"settings": {
|
|
"rewriteAddress": "1.1.1.1",
|
|
"rewritePort": 53,
|
|
"portMap": {
|
|
"8080": "10.0.0.5:80",
|
|
"8443": "10.0.0.5:443"
|
|
},
|
|
"allowedNetwork": "tcp,udp",
|
|
"followRedirect": false
|
|
}
|
|
}
|