mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-24 08:12:19 +07:00
fix(sub): bake Host VLESS Route into subscription UUIDs
The Host VLESS Route field was stored and shown in the panel but never applied to any generated subscription (raw, JSON, Clash), so the UUID was emitted unmodified (#5655). Xray reads the route from the UUID's 3rd group (bytes 6-7, net.PortFromBytes) and masks those bytes to zero before authenticating, so a value can be baked into the share/JSON/Clash UUIDs without breaking the user match. A shared applyVlessRoute helper encodes a single 0-65535 value as the 3rd group; empty/invalid/non-UUID input is left unchanged, so legacy data never yields a broken link and no DB migration is needed. The field was wrongly validated as a multi-segment port spec (that form belongs to the separate server-side routing rule). It is now a single value 0-65535, with frontend validation, link-preview parity (genVlessLink/hostToExternalProxyEntry), hint + error translations across all 13 locales, and tests on every path. Closes #5655
This commit is contained in:
@@ -1901,7 +1901,7 @@
|
||||
"nodeGuids": "Chọn các nút được phân giải từ host này. Chỉ là gán trực quan.",
|
||||
"serverDescription": "Ghi chú tùy chọn hiển thị bên dưới ghi chú.",
|
||||
"allowInsecure": "Bỏ qua xác minh chứng chỉ TLS (allowInsecure / skip-cert-verify).",
|
||||
"vlessRoute": "Cổng/dải cổng định tuyến qua VLESS, ví dụ 53,443,1000-2000. Để trống nếu không dùng.",
|
||||
"vlessRoute": "Một giá trị định tuyến VLESS (0-65535) được nhúng vào UUID, ví dụ 443. Để trống nếu không dùng.",
|
||||
"remark": "Nhãn đơn giản cho host này. Chỉ hiển thị làm tên cấu hình khi inbound không có ghi chú riêng."
|
||||
},
|
||||
"remarkVars": {
|
||||
@@ -1951,7 +1951,7 @@
|
||||
"update": "Cập nhật host",
|
||||
"delete": "Xóa host",
|
||||
"badTag": "Tag không hợp lệ",
|
||||
"badVlessRoute": "Dùng cổng/dải cổng như 53,443,1000-2000"
|
||||
"badVlessRoute": "Nhập một số duy nhất từ 0 đến 65535"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user