feat(inbounds): align tunnel, tun, and hysteria UI with Xray docs

* tunnel: rename settings to Xray's current schema (address →
  rewriteAddress, port → rewritePort, network → allowedNetwork) in
  the model, form modal, info modal, and the bundled API inbound
  template; expose portMap so per-port forwarding can be configured
  from the panel.
* tun: add the full TUN protocol form and read-only info blocks
  (name, mtu, gateway, dns, userLevel, autoSystemRoutingTable,
  autoOutboundsInterface) — previously the protocol was selectable
  but the form rendered blank.
* hysteria: surface the stream-level version, obfs password, and
  udpIdleTimeout fields that the model already supported.

Refs https://xtls.github.io/config/inbounds/tunnel.html
Refs https://xtls.github.io/config/inbounds/tun.html
Refs https://xtls.github.io/config/transports/hysteria.html
This commit is contained in:
MHSanaei
2026-05-13 22:44:08 +02:00
parent 61ab602887
commit 771bc7c8ef
4 changed files with 190 additions and 28 deletions

View File

@@ -12,7 +12,7 @@
"port": 62789,
"protocol": "tunnel",
"settings": {
"address": "127.0.0.1"
"rewriteAddress": "127.0.0.1"
},
"tag": "api"
}],