mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-24 08:12:19 +07:00
fix(clients): hide WireGuard config after detaching the WG inbound
The client info and QR modals rendered a WireGuard config whenever the client still carried leftover WG key material (privateKey / publicKey / allowedIPs / preSharedKey / keepAlive), regardless of whether a WireGuard inbound was actually attached. After detaching the WG inbound the config kept showing, built with an empty endpoint port and public key. Gate wgConfigText on an attached WireGuard inbound (wgInbound) being present, not just isWireguardClient(client), in both ClientInfoModal and ClientQrModal. Also rename the i18n key pages.clients.conf -> config and add the missing pages.clients keys (wireguardConfig, config, bulkFlow, bulkFlowNoChange, bulkFlowDisable) to all 12 non-English locales so each one matches en-US.
This commit is contained in:
@@ -718,6 +718,8 @@
|
||||
"tabBasics": "Cơ bản",
|
||||
"tabCredentials": "Thông tin xác thực",
|
||||
"tabLinks": "Liên kết",
|
||||
"wireguardConfig": "Cấu hình WireGuard",
|
||||
"config": "Cấu hình",
|
||||
"linksHint": "Thêm liên kết chia sẻ của bên thứ ba và URL đăng ký từ xa để đưa vào đăng ký của khách hàng này.",
|
||||
"addExternalLink": "Thêm liên kết ngoài",
|
||||
"addExternalSubscription": "Thêm đăng ký ngoài",
|
||||
@@ -871,6 +873,9 @@
|
||||
"bulkAdjustNothing": "Đặt số ngày hoặc lưu lượng trước khi áp dụng.",
|
||||
"addDays": "Thêm ngày",
|
||||
"addTrafficGB": "Thêm lưu lượng (GB)",
|
||||
"bulkFlow": "Đặt flow",
|
||||
"bulkFlowNoChange": "Không thay đổi",
|
||||
"bulkFlowDisable": "Tắt (xóa flow)",
|
||||
"delDepleted": "Xóa hết hạn mức",
|
||||
"delDepletedConfirmTitle": "Xóa khách hàng hết hạn mức?",
|
||||
"delDepletedConfirmContent": "Gỡ tất cả khách hàng đã dùng hết hạn mức lưu lượng hoặc đã quá hạn. Không thể hoàn tác.",
|
||||
|
||||
Reference in New Issue
Block a user