Alireza Ahmadi
95afd3006a
improve expiration delay start
2026-02-27 00:30:50 +01:00
shayan775
bcea56283f
The too many SQL variables path is now batched.
...
Changed code:
Added safe batching limits in inbound.go:
safeSQLVariablesPerQuery = 900
safeSaveBatchSize = 50
Fixed addClientTraffic in inbound.go:
email IN (...) lookup is now chunked (line 815).
tx.Save(dbClientTraffics) is now chunked (line 859).
Added nil guard for p.SetOnlineClients(...) (line 855).
Hardened adjustTraffics in inbound.go:
deduplicates inbound IDs before querying (line 877).
chunked inbound IN query (line 890).
chunked inbound Save (line 932).
Added regression test:
inbound_add_client_traffic_test.go
Verifies 4,000 client traffic updates succeed and totals are correct.
Validation run:
go test ./web/service -run TestAddClientTrafficHandlesLargeBatch -count=1 passed
go test ./web/service -count=1 passed
2026-02-24 19:19:04 +03:30
Alireza Ahmadi
6bab6ce6c4
Updates so far
...
Co-authored-by: MHSanaei <ho3ein.sanaei@gmail.com >
2026-02-01 00:51:53 +01:00
Alireza Ahmadi
b6252151f4
go package correction
2025-09-18 22:33:02 +02:00
Alireza Ahmadi
a27ca6d872
fix typo
2024-11-16 15:54:23 +01:00
Alireza Ahmadi
ce49394284
fix core restart on traffic reset of disabled client
2024-10-13 15:05:29 +02:00
Alireza Ahmadi
8ff38d603e
v1.8.7
2024-10-10 16:25:53 +02:00
Alireza Ahmadi
56c5b0d507
[bug] fix restarting core on disabling depleted user
2024-10-10 16:10:21 +02:00
Alireza Ahmadi
aaabbdacaa
v1.8.6
2024-09-01 20:33:29 +02:00
Alireza Ahmadi
1f918542ee
fix restart after enabling user #1406
2024-08-31 19:57:11 +02:00
Hassan Ali Gilani
f5ce84ae68
Add getClientTrafficsById ( #1347 )
...
* Add getClientTrafficsById
Ability for API to get traffics by uuid
* bugfix GetClientTrafficByID
* bugfix
GetClientTrafficByID
* Update
GetClientTrafficByID function by Alireza0 Recomendation
* update
Replace Logger Warning with Debug for GetClientTrafficByID
* Fix: return empty array instead of error in case of gorm.ErrRecordNotFound
---------
Co-authored-by: Ali Gilani <gilani1364@gmail.com >
2024-07-14 12:08:30 +02:00
mhsanaei
19a7a8574c
typo fixed
2024-07-10 21:06:58 +02:00
Alireza Ahmadi
9b43c37780
check error in remove by core-api
2024-06-15 11:19:05 +02:00
Alireza Ahmadi
7258cbfc70
fix empty client ID on request #1182
2024-04-18 22:53:33 +02:00
Alireza Ahmadi
c6ce96a63e
avoid empty client id #1099
2024-03-15 19:03:02 +01:00
Alireza Ahmadi
2012dd0c0a
small changes
2024-03-12 12:24:26 +01:00
Hamidreza
b6ccb2e076
Some fixes and improvements ( #1077 )
...
* [refactor] api controller
* [update] use status code for jsonMsg and 401 to unauthorize
* [update] handle response status code via axios
* [lint] all .go files
2024-03-10 18:00:44 +01:00
Alireza Ahmadi
629d0da33c
avoid empty client id #1072
2024-03-10 16:02:31 +01:00
Alireza Ahmadi
80c3f84eac
small changes
2024-03-10 15:29:03 +01:00
Alireza Ahmadi
1c660bbea1
small changes
2024-02-26 19:33:50 +01:00
Alireza Ahmadi
99e9c27d2f
small changes
2024-02-24 00:08:25 +01:00
Alireza Ahmadi
1329b2bb61
support multi address-port #997
2024-02-22 14:18:31 +01:00
Alireza Ahmadi
fff74d7ea7
[bug] avoid empty inbound #884
2024-01-23 22:01:57 +01:00
Alireza Ahmadi
fd64ae5c85
[feature] import-export inbound #699
2023-12-07 12:58:19 +01:00
Alireza Ahmadi
d406d2925a
[xray] fix adding empty inbound
2023-12-06 16:08:33 +01:00
Alireza Ahmadi
3a913ca81a
[externalProxy] seprated port field #656
2023-11-30 00:18:37 +01:00
Alireza Ahmadi
e372575f58
migrate old MultiDomain to externalProxy #637
2023-11-29 03:03:41 +01:00
Alireza Ahmadi
b41aef37e5
[tgbot] support telegram ID #633
2023-11-26 15:37:08 +01:00
Alireza Ahmadi
54197993db
[xray] easy routing rules
2023-11-20 22:49:25 +01:00
Alireza Ahmadi
7c74c534f0
DESIGN REFACTOR ( #600 )
...
### New features
- New face + dark mode
- [Change font to vazirmatn](057f3190de )
- [use customized andtv](f956009fd2 )
- [popConfirm for del and reset client](66c98e8392 )
- [Separate page for xray config](9e1cd6315f )
- Separate face for mobile view
- [Show online users](bf892e9965 ) [#559 ](https://github.com/alireza0/x-ui/issues/559 )
- [Auto renew](96408967ae )
### Bug fixes
- [[tgbot] Retry loop on start](211c05ec29 )
- [fix docker-compose version](1dcec91ce4 )
- [fix redirect after restart](81d25a032c )
2023-11-09 23:31:17 +01:00
Alireza Ahmadi
28a3fc813c
[db] Enbancement add traffic fully transactional
...
- Remove expiration process of client/inbound with separate cron
- Combine expiration process to add traffic
- Combine calculation of all the traffics to one database transaction
2023-08-25 18:24:40 +02:00
Alireza Ahmadi
49eedb7057
fix logs in api
2023-07-30 16:28:44 +02:00
Alireza Ahmadi
b8eee6e373
full multiuser shadowsocks
2023-07-23 11:54:39 +02:00
Alireza Ahmadi
3be40f8595
fix logs after api changes #443
2023-07-23 11:51:27 +02:00
Alireza Ahmadi
d2e50d0493
v1.5.1
...
Plus some fixes
2023-07-16 18:43:38 +02:00
Alireza Ahmadi
5fbb234b06
[feature] using xray api for inbound #351
2023-07-16 17:05:15 +02:00
Alireza Ahmadi
fe29c48d89
remove vmess alterId
2023-06-20 12:27:01 +02:00
Alireza Ahmadi
6f15de752c
[reality] random shortId #361
2023-06-04 17:52:49 +02:00
Alireza Ahmadi
81a21b8ae0
[api] backward compatibility: add client by update
2023-06-04 16:43:08 +02:00
Alireza Ahmadi
04aaf94016
Improve DB performance
2023-06-04 16:40:59 +02:00
Alireza Ahmadi
9f7e2f21f3
[feature] using xray api #351
2023-06-04 10:53:43 +02:00
Alireza Ahmadi
2b8c913be9
[feature] separate subscription service
2023-05-20 21:27:32 +02:00
Hamidreza Ghavami
b125f1835c
add MigrateDB func for a single source of truth
2023-05-06 00:22:21 +04:30
Alireza Ahmadi
39c1a4276d
[feature] multi-user shadowsocks
2023-05-02 19:56:41 +02:00
Alireza Ahmadi
3f7ef07b8e
[bug] fix GetClientTrafficByEmail
2023-04-28 10:52:47 +02:00
Alireza Ahmadi
7ecb73af8c
[migrate] remove orphaned traffics
2023-04-27 17:31:30 +02:00
Alireza Ahmadi
365ec1a704
[bug] fix expirytime #267
2023-04-26 11:20:56 +02:00
Alireza Ahmadi
35ad91a9e0
[feature] delete depleted clients
2023-04-25 16:24:13 +02:00
Alireza Ahmadi
8bc16b020b
[migration] add fix for omitted traffics
2023-04-25 16:22:42 +02:00
Alireza Ahmadi
5baa397d1c
[feature] reset traffics of all client
2023-04-25 12:26:56 +02:00