mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-22 09:46:37 +08:00
feat(sub): add per-client subscription HWID limits (#5802)
* feat(sub): add per-client subscription HWID limits * fix(sub): address HWID review on shared subId and bulk create * fix(sub): store HWID devices by sub_id and drop anchor client workaround * fix(sub): restore UA auto-detect and HTML page routing in subs() The cherry-pick of the HWID gate onto main's refactored SUBController had dropped main's UA-based format auto-detection and sub-page handling from subs(). Restore those branches, slotting enforceHwid after the HTML page and before format detection so the gate only applies to machine-readable subscription bodies. Also adapt tests to main's options-struct constructor and to the ClientService.Update signature extended with limitHwid. * fix(frontend): drop axios from HttpUtil.delete The bulk-delete rework's committed version still referenced axios, which this file no longer imports, breaking typecheck in CI. Use the httpRequest wrapper like the other verbs. --------- Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com>
This commit is contained in:
@@ -714,6 +714,13 @@
|
||||
"addClients": "クライアントを追加",
|
||||
"limitIp": "IP 制限",
|
||||
"limitIpDesc": "同時接続 IP の最大数。0 = 無制限。",
|
||||
"limitHwid": "HWID 制限",
|
||||
"limitHwidDesc": "サブスクリプション要求で登録できる最大デバイス数。0 = 無制限。",
|
||||
"hwidLog": "HWID デバイス",
|
||||
"hwidDevice": "登録済みデバイス",
|
||||
"noHwids": "HWID デバイスはまだありません",
|
||||
"firstSeen": "初回確認",
|
||||
"lastSeen": "最終確認",
|
||||
"limitIpFail2banMissing": "Fail2ban がインストールされていないため、IP 制限を適用できません。このオプションを有効にするには、x-ui の bash メニューから Fail2ban をインストールしてください。",
|
||||
"limitIpFail2banWindows": "Windows では Fail2ban を利用できないため、IP 制限を適用できません。",
|
||||
"limitIpDisabled": "このサーバーでは IP 制限機能が無効になっています。",
|
||||
|
||||
Reference in New Issue
Block a user