BlacKSnowDot0
938417943d
Update inbound.go
...
checkPortExist Function:
Simplified the query by combining the conditions into a single Where clause.
Removed unnecessary variable assignment for db.
checkEmailExistForInbound Function:
Introduced a map seenEmails to track already seen emails, which eliminates the need for the contains function call for each client email, thus reducing the complexity from O(n^2) to O(n).
UpdateInbound Function:
Instead of manually assigning each field, a map updates is used to update only the changed fields in the database. This reduces the verbosity of the code and makes it easier to maintain.
Removed the unnecessary API calls for adding and deleting inbounds, as the function should only update the database record.
addClientTraffic Function:
Streamlined the update process by directly updating the traffic records in the database using a loop, which avoids the need to first load all records into a slice and then adjust them.
2023-11-19 17:50:41 -08:00
MHSanaei
1277285d08
[db] Enbancement add traffic fully transactional
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-08-26 15:19:51 +03:30
MHSanaei
c46ced0c4c
fix logs in api
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-07-31 19:52:28 +03:30
MHSanaei
145ea1e6f1
full multiuser shadowsocks
...
full multiuser shadowsocks +
fix logs after api changes
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-07-27 11:58:46 +03:30
MHSanaei
1f78842b70
[feature] using xray API for inbound
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-07-18 02:40:22 +03:30
Hamidreza
1028319386
🚀 Some improvements for x-ui.sh and ip job ( #665 )
2023-07-01 15:56:43 +03:30
MHSanaei
ad9134bc1a
removed - alterId
...
https://github.com/XTLS/Xray-core/pull/2199
9112cfd39c
2023-06-13 17:26:50 +03:30
MHSanaei
594d682e20
random sub Id
...
optimize utils
trojan short id fix
index page better view
2023-06-07 12:45:58 +03:30
MHSanaei
70f250dfe1
[feature] using xray api and more
...
Improve DB performance
[api] backward compatibility: add client by update
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-06-05 00:32:19 +03:30
Hamidreza Ghavami
8170b65db4
add an option for webDomain
2023-05-31 01:21:14 +04:30
MHSanaei
769590d779
[feature] separate subscription service
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-05-22 18:06:34 +03:30
Masoud Hidden
bcdac5aad6
[tgbot] Ability to select telegram user for client from bot
2023-05-14 22:07:49 +03:30
MHSanaei
f22dd6b53d
[feature] multi-user shadowsocks @alireza0
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-05-06 20:21:14 +03:30
Hamidreza
058ab5f901
Merge branch 'MHSanaei:main' into main
2023-05-06 03:37:04 +03:30
Hamidreza Ghavami
26f160fb89
add MigrateDB func for a single source of truth
2023-05-06 00:22:39 +04:30
Masoud Hidden
d349bffcd6
Fix bot client enable button
2023-05-05 19:50:40 +03:30
Masoud Hidden
5856160c30
Added some new buttons to bot and ability to use userId in tgId
2023-05-05 18:20:56 +03:30
Masoud Hidden
a53d2b927f
fix ResetClientExpiryTimeByEmail
2023-05-05 04:34:39 +03:30
Masoud Hidden
961636b510
Client reset buttons for telegram bot
2023-05-05 01:16:43 +03:30
MHSanaei
177bd036a3
[bug] fix GetClientTrafficByEmail
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-28 18:40:33 +03:30
MHSanaei
103a26edb6
[migrate] remove orphaned traffics
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-27 19:05:36 +03:30
MHSanaei
edabfad559
fix expiry time
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-26 12:57:49 +03:30
MHSanaei
379451135d
[feature] delete depleted clients
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-25 18:43:37 +03:30
MHSanaei
bc06dbab21
[migration] add fix for omitted traffics
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-25 18:36:06 +03:30
MHSanaei
cc3ff61ae2
update by client id
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-25 14:38:35 +03:30
MHSanaei
16e3107d23
Better client delete + api
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-24 15:07:11 +03:30
MHSanaei
262e3c0985
Add database migration
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-24 14:13:25 +03:30
MHSanaei
2b460bac1a
Optimize database
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-24 14:04:05 +03:30
MHSanaei
f817f922fe
add getClientTraffics api
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-21 19:06:59 +03:30
MHSanaei
c627227893
bug fixed
2023-04-19 15:37:24 +03:30
MHSanaei
e1132a3f41
bug fix
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-19 11:55:38 +03:30
MHSanaei
3e0faecaae
improve reality setting
...
split xtls from tls - remove iran warp - remove old setting reality from franzkafka (it was a messy code) -and other improvement
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-18 21:34:06 +03:30
MHSanaei
c6b59f1ee3
[migration] Remove Orphaned Traffics
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-13 18:45:18 +03:30
MHSanaei
b40759fe18
remove traffics of edited emails
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-13 18:44:56 +03:30
MHSanaei
8c40e7281f
bug fix
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-11 18:39:07 +03:30
MHSanaei
7412bf17a9
bug fix
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-11 15:41:04 +03:30
MHSanaei
e1da43053d
alireza update pack
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-04-09 23:13:18 +03:30
MHSanaei
9c0718bc44
Revert "Add version and log"
...
This reverts commit 826c7264b5
.
2023-03-24 17:14:26 +03:30
MHSanaei
826c7264b5
Add version and log
...
TGBOT: Add xray config to backup
[TGBOT] add seach inbound
2023-03-24 17:13:31 +03:30
MHSanaei
a6dfdcdd31
Add version and log
2023-03-24 17:08:30 +03:30
Alireza Ahmadi
738a771b87
Fix delete bug
2023-03-17 19:29:08 +01:00
Alireza Ahmadi
baaa814a51
Fix del/update affects on clientIPs
2023-03-17 19:02:56 +01:00
MHSanaei
96786c9418
alireza
2023-03-17 19:37:49 +03:30
MHSanaei
bc56e63737
pack1
2023-03-17 01:31:14 +03:30
MHSanaei
5317df21f3
ip limit + export links
2023-02-28 23:24:29 +03:30
MHSanaei
add853fada
update pack 3
...
user pass will be generated randomly
upgrade all dependencies
move add client buttom
2023-02-20 20:59:55 +03:30
MHSanaei
b412df70f1
update pack 2
2023-02-18 16:07:32 +03:30
MHSanaei
b73e4173a3
3x-ui
2023-02-09 22:48:06 +03:30