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
cad6eeb9f5
fixed telego
...
after github.com/mymmrac/telego from 0.26.3 to 0.27.0
2023-10-25 23:03:17 +03:30
MHSanaei
b0aaece6eb
remove iran.dat
...
so after this you need to click on "reset to default configuration"
2023-10-18 13:22:07 +03:30
MHSanaei
1c1f53267a
Add encrypt subscription ON/OFF switch
...
Co-Authored-By: SudoSpace <79229394+sudospaes@users.noreply.github.com>
2023-08-26 16:54:01 +03:30
MHSanaei
8489f5f528
some changes
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-08-26 16:07:02 +03:30
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
38e1d0f94e
[sub] improve usage info in Remark
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-08-26 15:11:12 +03:30
MHSanaei
e00c3f1823
add panel usage to main page
2023-08-09 00:37:05 +03:30
Hamidreza
24eb36715a
Add iran.dat when updating xray ( #870 )
...
we can download iran.dat, because it's one of the required files in our settings
2023-08-08 22:21:02 +03:30
MHSanaei
329889ec00
v1.7.5
2023-08-02 17:19:50 +03:30
MHSanaei
bf971911d5
log level & syslog
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-07-31 20:11:47 +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
c2b1fb4855
because of #815 now we can use XTLS/Xray-core
...
change MHSanaei/Xray-core to XTLS/Xray-core
2023-07-27 11:06:27 +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
b833ed7992
new - tg Login Notification #584
2023-06-17 19:11:16 +03:30
Ho3ein
5188d516e3
new - loglevel ( #612 )
2023-06-16 18:25:33 +03:30
MHSanaei
d40e61fc45
fix and improve
2023-06-14 19:50:19 +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
somebodywashere
c182f48079
[tgbot] - bugfix
2023-05-31 08:37:03 +00:00
Hamidreza
d694e6eafc
FIX tgbot adminIds
2023-05-31 05:01:20 +03:30
Hamidreza Ghavami
6ae80fc992
add /id command to tgbot to get user id
2023-05-31 02:31:00 +04:30
Hamidreza Ghavami
8170b65db4
add an option for webDomain
2023-05-31 01:21:14 +04:30
somebodywashere
8442836512
[tgbot] - some fixes and improvments ( #542 )
2023-05-30 15:07:23 +03:30
MHSanaei
15211f81b1
New - CPU Speed
...
logical Processors removed
2023-05-25 15:48:23 +03:30
MHSanaei
896cc5386c
new - show cores, public ipv4 and ipv6
...
logical Processors
you can see them on first page
2023-05-25 03:11:09 +03:30
MHSanaei
769590d779
[feature] separate subscription service
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-05-22 18:06:34 +03:30
Hamidreza Ghavami
f82d0051b2
Update hashstorage functionality
2023-05-21 08:33:08 +04:30
Hamidreza Ghavami
76267b23a0
fix tgbot
2023-05-21 07:41:59 +04:30
Hamidreza Ghavami
3a835fbeb8
FIX ERROR 'msg and reply are same' in tgbot
2023-05-21 05:48:19 +04:30
Hamidreza Ghavami
f6461b8386
FIX hashStorage remove expire job
2023-05-21 05:33:01 +04:30
Hamidreza Ghavami
82ead05093
Update tgbot locale + add I18nBot
2023-05-21 03:30:26 +04:30
Hamidreza Ghavami
786a3ac992
FIX hashStorage
2023-05-20 21:46:42 +04:30
Hamidreza Ghavami
8c5648eb09
FIX callback query and BUTTON_DATA_INVALID error with hashStorage
2023-05-20 20:29:28 +04:30
Hamidreza Ghavami
4dfe527f20
init i18n in tgbot
2023-05-20 20:08:01 +04:30
Hamidreza Ghavami
678962d4ca
some fix and prune for tgbot
2023-05-20 19:39:01 +04:30
Hamidreza Ghavami
4831c2f1b2
Add tgLang option
2023-05-20 19:15:20 +04:30
Hamidreza Ghavami
ac9408c37f
update sub remark for shadowsocks
2023-05-20 18:44:18 +04:30
Mahdi Nemati
334b28cddc
Api for backup Telegram ( #468 )
2023-05-19 00:31:05 +03:30
MHSanaei
f781979d38
update - config
2023-05-18 11:52:53 +03:30
MHSanaei
f8eb548376
[feature] SpiderX for Reality
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-05-17 16:10:11 +03:30
MHSanaei
be50be75fe
[sub] add more headers
...
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-05-17 01:07:35 +03:30
Masoud Hidden
a21bdc9396
[tgbot] Fix reply keyboard height
2023-05-14 22:55:01 +03:30
Masoud Hidden
4cf7f75749
[tgbot] Ability to remove telegram user from the client in the bot
2023-05-14 22:43:23 +03:30
Masoud Hidden
bcdac5aad6
[tgbot] Ability to select telegram user for client from bot
2023-05-14 22:07:49 +03:30
Masoud Hidden
3d5f851fce
[tgbot] Changed to telego
2023-05-14 18:50:01 +03:30
MHSanaei
9e8ac8a087
remove search Data files
2023-05-13 15:03:46 +03:30