mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-23 02:06:34 +08: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": "پایه",
|
||||
"tabCredentials": "اطلاعات اتصال",
|
||||
"tabLinks": "لینکها",
|
||||
"wireguardConfig": "پیکربندی WireGuard",
|
||||
"config": "پیکربندی",
|
||||
"linksHint": "لینکهای اشتراک شخصثالث و آدرس سابسکریپشنهای خارجی را اضافه کنید تا در سابسکریپشن این کاربر قرار گیرند.",
|
||||
"addExternalLink": "افزودن لینک خارجی",
|
||||
"addExternalSubscription": "افزودن سابسکریپشن خارجی",
|
||||
@@ -871,6 +873,9 @@
|
||||
"bulkAdjustNothing": "قبل از اعمال، روز یا ترافیک را تنظیم کنید.",
|
||||
"addDays": "افزودن روز",
|
||||
"addTrafficGB": "افزودن ترافیک (گیگابایت)",
|
||||
"bulkFlow": "تنظیم flow",
|
||||
"bulkFlowNoChange": "بدون تغییر",
|
||||
"bulkFlowDisable": "غیرفعال (پاک کردن flow)",
|
||||
"delDepleted": "حذف اتمامیافتهها",
|
||||
"delDepletedConfirmTitle": "حذف کلاینتهای اتمامیافته؟",
|
||||
"delDepletedConfirmContent": "هر کلاینتی که سهمیه ترافیکاش تمام شده یا تاریخ انقضایش گذشته است حذف میشود. این عمل غیرقابل بازگشت است.",
|
||||
|
||||
Reference in New Issue
Block a user