feat(fallbacks): add per-rule dest override

Operators can now type an explicit dest (e.g. "8443", "127.0.0.1:8443",
"/dev/shm/x.sock") on each fallback row to override the auto-resolved
child listen+port. Empty keeps the existing auto behavior.

Adds the column to inbound_fallbacks (GORM AutoMigrate), threads it
through the panel form, API docs, and translations.
This commit is contained in:
MHSanaei
2026-05-28 21:17:49 +02:00
parent 1fd2c1333c
commit 798e18b6ee
22 changed files with 88 additions and 58 deletions
+4 -2
View File
@@ -863,7 +863,7 @@
"tags": [
"Inbounds"
],
"summary": "List the fallback rules attached to a master VLESS/Trojan TCP-TLS inbound. Each rule links one child inbound (the dest) to optional SNI/ALPN/path/xver match criteria.",
"summary": "List the fallback rules attached to a master VLESS/Trojan TCP-TLS inbound. Each rule links one child inbound (the dest) to optional SNI/ALPN/path/dest/xver match criteria. When dest is empty the child inbound's listen+port is used.",
"operationId": "get_panel_api_inbounds_id_fallbacks",
"parameters": [
{
@@ -903,6 +903,7 @@
"name": "",
"alpn": "",
"path": "/vlws",
"dest": "",
"xver": 2,
"sortOrder": 0
}
@@ -946,7 +947,8 @@
},
{
"childId": 12,
"alpn": "h2"
"alpn": "h2",
"dest": "8443"
}
]
}