diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-05-05 00:19:25 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2026-05-05 00:19:25 +0300 |
| commit | 6099a07ff0a3f619ace3c7645ee76dce943a97e0 (patch) | |
| tree | 10919163dd9a978908ed5fb16baa6a3a81cf32bf /web/translation/translate.id_ID.toml | |
| parent | e9806832ec222e87052c3b8263f392bf5a41974e (diff) | |
feat: add configurable auto-restart on client auto-disable
Add a configurable option to restart Xray when clients are auto-disabled and persist disable actions.
Changes include:
- New setting restartXrayOnClientDisable (default true), getters/setters in SettingService, UI toggle in general settings, and translations for multiple locales.
- AddTraffic signature updated to return a third bool (clientsDisabled). disableInvalidClients now calls Xray API to remove users, marks client_traffics.enable=false, updates inbound.Settings JSON so clients appear disabled in stored settings, and returns appropriate counts/errors.
- XrayTrafficJob now checks the clientsDisabled flag and restarts Xray when the setting is enabled (with fallback to mark Xray as needing restart on failure).
- XrayService.GetXrayConfig call adjusted to ignore AddTraffic returns.
- Subscription generation (subService/subJson/subClash) no longer filters clients by their enable flag when matching subId.
- Minor fixes: check_client_ip_job now checks scanner.Err and improved API error handling/logging.
These changes ensure auto-disabled clients are propagated to Xray and the stored inbound settings, and provide an option to restart Xray automatically after auto-disable events.
Diffstat (limited to 'web/translation/translate.id_ID.toml')
| -rw-r--r-- | web/translation/translate.id_ID.toml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/translation/translate.id_ID.toml b/web/translation/translate.id_ID.toml index f2ac71fc..57615d89 100644 --- a/web/translation/translate.id_ID.toml +++ b/web/translation/translate.id_ID.toml @@ -477,6 +477,8 @@ "externalTrafficInformEnableDesc" = "Inform external API on every traffic update." "externalTrafficInformURI" = "Lalu Lintas Eksternal Menginformasikan URI" "externalTrafficInformURIDesc" = "Pembaruan lalu lintas dikirim ke URI ini." +"restartXrayOnClientDisable" = "Nyalakan Ulang Xray Setelah Nonaktif Otomatis" +"restartXrayOnClientDisableDesc" = "Saat klien otomatis dinonaktifkan karena kedaluwarsa atau batas trafik, mulai ulang Xray." "fragment" = "Fragmentasi" "fragmentDesc" = "Aktifkan fragmentasi untuk paket hello TLS" "fragmentSett" = "Pengaturan Fragmentasi" |
