Commit graph

59 commits

Author SHA1 Message Date
Danilo Nascimento
143ec4ccd5 fix writeCrashReport() typo (#3218) 2025-07-10 02:36:02 +02:00
Shishkevich D.
206f91e86d refactor: use math.MaxUint16 when checking port 2025-06-17 22:45:03 +07:00
rammiah
abc5d4ff89 feat: support metrics config 2025-06-11 18:42:41 +08:00
mhsanaei
d6f7f57b72 xray log - minor change 2025-03-13 11:48:00 +01:00
mhsanaei
1c452cb40e Refactor: Use any instead of interface{} 2025-03-12 20:43:43 +01:00
mhsanaei
f2b810e538 Xray log: show failed on error log level 2025-03-10 14:31:06 +01:00
mhsanaei
b6a3b876b3 bug fix - xray log 2025-03-10 13:46:46 +01:00
Sanaei
7e64355f51 revert group management (#2656)
* Revert "json post base path bug fixed (#2647)"

This reverts commit 2c88e53ba0.

* Revert "Group Management of Subscription Clients"

* Revert "fix getSubGroupClients for enable/disable and edit clients."

* Revert "Enhance database initialization in db.go (#2645)"

This reverts commit fc8cce9f90.

* Revert "Add checkpoint handling in CloseDB function (#2646)"

This reverts commit 13b1e4c7e6.

* Revert "Improved database model migration and added indexing (#2655)"

This reverts commit cb6ba20865.
2025-02-04 11:27:58 +01:00
Zahar Izmailov
cb6ba20865 Improved database model migration and added indexing (#2655) 2025-02-03 13:36:03 +01:00
mhsanaei
1089d7234c fix crash report
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-12-03 23:07:24 +01:00
mhsanaei
8a98bb9803 Core crash report
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-11-21 17:25:11 +03:30
mhsanaei
e10e6398b4 Xray-core v24.11.11 2024-11-13 14:23:53 +03:30
mhsanaei
72bf4b3f29 New - Allocate 2024-09-16 11:41:21 +02:00
yeer
f1e3994f79 fix bug for nil pointer (#2438) 2024-07-23 11:11:28 +02:00
mhsanaei
4ed0f6bfc8 improved - message logs 2024-07-08 23:47:49 +02:00
mhsanaei
b6a49427c0 Optimize XrayAPI functionality and structure 2024-07-04 00:17:28 +02:00
mhsanaei
b0023828ef grpc.Dial is deprecated: use NewClient instead 2024-07-01 19:22:35 +02:00
mhsanaei
a6911280af [log] add exit code
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-04-01 12:20:34 +04:30
Hamidreza
8970f8f1a6 [iplimit] fix access log path in settings service (#2044)
* [iplimit] fix access log path in settings service

better to avoid hardcoding the access log path to enhance flexibility. not all users prefer the default './access.log'

* [iplimit] fix iplimit
2024-03-13 11:24:41 +03:30
MHSanaei
7186d3cd75 [xray] add BurstObservatory + minor changes
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-03-11 11:46:54 +03:30
Hamidreza
d503bff637 Some fixes and improvements (#1997)
* [refactor] api controller

* [fix] access log path

better to not hardcode the access log path, maybe some ppl dont want to use the default ./access.log

* [fix] set select options from logs paths in xray settings

* [update] .gitignore

* [lint] all .go files

* [update] use status code for jsonMsg and 401 to unauthorize

* [update] handle response status code via axios

* [fix] set correct value if log paths is set to 'none'

we also use the default value for the paths if its set to none

* [fix] iplimit - only warning access log if f2b is installed
2024-03-11 01:01:24 +03:30
somebodywashere
34335d12a4 [IPLimit] Optimize + Debian 12 compability 2024-03-05 16:39:20 +03:00
MHSanaei
2dccd19dc9 [sub] json + fragment
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-02-21 14:17:52 +03:30
MHSanaei
b8005634e2 some changes
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-02-19 00:47:47 +03:30
MHSanaei
57503ea4c1 [logs] new bug-free log_writer
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-02-17 21:37:58 +03:30
somebodywashere
b2d753b80b some log changes (#1789)
* some logs changes

* removed some empty lines
2024-02-10 14:10:39 +03:30
MHSanaei
15654129d4 bug fix log_writer
+ notice log level

Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-02-04 01:45:16 +03:30
Saeid
23cf83c8f1 Show outbound traffic in outbounds table (#1711)
* store outbound traffic in database

* show outbound traffic in outbounds table

* add refresh button
2024-01-30 00:07:20 +03:30
MHSanaei
fe80c96626 fix log writer crash
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-01-10 16:16:18 +03:30
Saeid
419493b71b socks5 proxy option added to telegram bot settings (#1500)
* socks5 option added to telegram bot settings

* update socks5 proxy settings translations
2024-01-03 16:29:29 +03:30
somebodywashere
071fd5d2ea Major changes to tgbot, also small changes for panel (#1463)
* Reduce outage time on Xray errors

* Improved logs clearing, added previous logs
File name change: 3xipl-access-persistent.log -> 3xipl-ap.log
All previous logs have .prev suffix

* Preparations for tgbot additions

* [tgbot] Improvements, Additions and Fixes
* Changed interaction with Expire Date for Clients
* Added more info and interactions with Online Clients
* Added a way to get Ban Logs (also added them to backup)
* Few fixes and optimizations in code
* Fixed RU translation

* [tgbot] More updates and fixes

* [tgbot] Quick Fix

* [tgbot] Quick Fix 2

* [tgbot] Big Updates
Added Notifications for Clients throught Tgbot (when Expire)
Added compability for Usernames both w/wo @
Added more buttons overall for admins

* [tgbot] Fixes

* [tbot] Fixes 2

* [tgbot] Removed usernames support for Notifications to work

* [tgbot] Fix

* [tgbot] Fix Notify

* [tgbot] small fixes

* [tgbot] replyMarkup only for last message on big messages

* [tgbot] Fixed last message is empty

* [tgbot] Fix messages split
2024-01-01 18:37:56 +03:30
Alireza Ahmadi
02be25b596 [logs] combine with xray logs #1300 2023-12-10 13:07:50 +01:00
Alireza Ahmadi
ea66a1b23c auto renew feature #1286 2023-12-04 19:20:16 +01:00
Alireza Ahmadi
6dbc2fc3e3 online users backend #1286 2023-12-04 19:13:21 +01:00
MHSanaei
d0fd8366f5 remove iran.dat
so after this you need to click on "reset to default configuration"
2023-10-18 13:22:07 +03:30
MHSanaei
8b27870b6f [ss] fix adding ietf clients by api
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-08-29 22:32:49 +03:30
MHSanaei
00762ef282 add panel usage to main page 2023-08-09 00:37:05 +03:30
Hamidreza
3442b4a39a 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
1094b3d2eb 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
f7466be7e1 [api] fix actions for shadowsocks
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-07-27 11:34:46 +03:30
MHSanaei
fc771dae3b 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
63ce333037 [feature] using xray API for inbound
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-07-18 02:40:22 +03:30
Hamidreza
b0209fb0f9 🚀 Some improvements for x-ui.sh and ip job (#665) 2023-07-01 15:56:43 +03:30
MHSanaei
3f220b7089 gracefully shutdown xray-core
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-06-16 01:10:49 +03:30
MHSanaei
5a7d090347 removed - alterId
https://github.com/XTLS/Xray-core/pull/2199
9112cfd39c
2023-06-13 17:26:50 +03:30
MHSanaei
54da8ad9bd [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
MHSanaei
8d7199c678 some changes
ip limit method back to v1.6.0 method
remove event on getDBClientIps
better show ip on log (",\n")
2023-06-03 18:59:32 +03:30
MHSanaei
2af8dd908b change blockedips to AllowedIps
now only those IPs that are allowed are able to establish a connection; other connections are dropped it will happen every 10 sec
after user offline that IPs will be removed from AllowedIps
2023-05-25 03:21:31 +03:30
MHSanaei
7dc90c9e79 a lot of improvement 2023-05-23 02:43:15 +03:30
MHSanaei
0f1a73d646 Fix deprecated gRPC Dial options for Insecure connections 2023-05-23 00:52:15 +03:30