Commit graph

103 commits

Author SHA1 Message Date
Azavax
0216dfd1c4 Endpoint for updating client traffic by email (#3259)
* Update api.go

* Update inbound.go

* Update inbound.go
2025-07-22 23:43:48 +02:00
Shishkevich D.
6e3d2923da fix: handle inbounds interaction errors (#3009)
eliminates messages like: “Inbound created successfully (Port 100 is already busy)”.
2025-05-16 23:56:56 +07:00
Shishkevich D.
0d60a39192 chore: toasts translation refactoring 2025-05-09 10:46:29 +07:00
Shishkevich D.
31f9be62b5 chore: implement 2fa auth (#2968)
* chore: implement 2fa auth

from #2786

* chore: format code

* chore: replace two factor token input with qr-code

* chore: requesting confirmation of setting/removing two-factor authentication

otpauth library was taken from cdnjs

* chore: revert changes in `ClipboardManager`

don't need it.

* chore: removing twoFactor prop in settings page

* chore: remove `twoFactorQr` object in `mounted` function
2025-05-08 16:20:58 +02:00
Shishkevich D.
b9e0781f52 feat: implement geofiles update in panel (#2971)
solves #2672

Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com>
2025-05-06 18:10:58 +02:00
Columbiysky
b7be30dccc feat: hashing user passwords
solves problems #2944, #2783
2025-05-03 16:27:53 +07:00
mhsanaei
1c452cb40e Refactor: Use any instead of interface{} 2025-03-12 20:43:43 +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
Ali Rahimi
661ae0e671 Group Management of Subscription Clients (#2644)
* add group user with the same subscription id to all inbounds

* code format compare

* add await for reset client traffic

* en language changed

* added client traffic syncer job

* handle exist email duplicate in sub group

* multi reset and delete request for clients group

* add client traffic syncer setting option

* vi translate file updated

* auto open qr-modal bug fixed
2025-01-21 03:01:54 +01:00
MHSanaei
f35d531acc fix session
twice  set-cookie bug fixed
2024-12-16 14:24:59 +01:00
lexnake3
ae72dbd7b5 show IP on warning log when user pass is not correct (#2607) 2024-12-03 22:41:14 +01:00
Vyacheslav Scherbinin
dbdf3c9ada Fix toasts (#2571)
* Add space to toast status messages

* Removed opening space from translations
2024-09-30 17:06:38 +02:00
mhsanaei
ac33b38c38 Session - default 60 minute (minimum) 2024-09-12 09:41:24 +02:00
mhsanaei
b7308b991e fix session 2024-08-06 13:44:48 +02:00
mhsanaei
d9ce8e714a API - Get client's traffic By ID
Co-Authored-By: Hassan Ali Gilani <mr.ajaxian@gmail.com>
2024-07-23 11:28:28 +02:00
mhsanaei
88c9233c1f [warp] enhanced + delete option
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-07-15 00:21:54 +02:00
mhsanaei
f63cc50bbb safe login
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-07-14 23:37:43 +02:00
mhsanaei
4ed0f6bfc8 improved - message logs 2024-07-08 23:47:49 +02:00
mhsanaei
c82b207288 Typo fixed 2024-07-07 12:10:24 +02:00
mhsanaei
cb975d19e0 change session name 2024-07-05 14:33:04 +02:00
mhsanaei
ccb33cdb30 some changes 2024-07-04 15:04:04 +02:00
mhsanaei
99b4bd5562 tgbot - login notify (show password for failed login) 2024-07-03 21:53:45 +02:00
Ahmad Thoriq Najahi
df9e4d9db7 feat: Enhance host extraction from headers (#2292)
- Refactor SUBController subs and subJsons methods to extract host from X-Forwarded-Host header, falling back to X-Real-IP header and then to the request host if unavailable.
- Update html function to extract host from X-Forwarded-Host header, falling back to X-Real-IP header and then to the request host if unavailable.
- Update DomainValidatorMiddleware to first attempt to extract host from X-Forwarded-Host header, falling back to X-Real-IP header and then to the request host.

Fixes: #2284

Signed-off-by: Ahmad Thoriq Najahi <najahi@zephyrus.id>
2024-05-23 23:51:19 +02:00
mhsanaei
39a08971e4 Add X-Real-IP Support for Client IP (login page) 2024-05-23 15:16:13 +02:00
mhsanaei
0c2e2f4c05 Ensure IPv6 compliant host
Co-Authored-By: vnxme <46669194+vnxme@users.noreply.github.com>
2024-05-22 20:06:49 +02:00
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
MHSanaei
4146e72e9e bug fix #1595 2024-02-21 22:20:51 +03:30
MHSanaei
2dccd19dc9 [sub] json + fragment
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-02-21 14:17:52 +03:30
surbiks
3519fe657c add outbound traffic reset (#1767) 2024-02-07 11:25:31 +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
bee2ddfbb7 v2.1.2
revert #1650 #1661 #1664 #1670
made panel full of bug
2024-01-27 00:32:19 +03:30
Ali Rahimi
2a2c9edd1c add single client bug fixed (#1664) 2024-01-23 13:30:21 +03:30
Ali Rahimi
0de3d2d0b0 Group editing feature of users with the same subscription (#1661) 2024-01-22 15:08:36 +03:30
Ali Rahimi
d593611e7f add group user with the same subscription id to all inbounds (#1650) 2024-01-21 17:56:19 +03:30
Amin
dd8353f65a Fix inbounds with the same port and different IPs (#1595) 2024-01-17 16:21:28 +03:30
MHSanaei
513e8ebd53 WARP via wireguard
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2024-01-11 09:57:21 +03:30
Alireza Ahmadi
353fb7bde0 [xray] show xray errors #1300 2023-12-10 12:57:39 +01:00
Alireza Ahmadi
29de5a9cb9 import-export inbound #1300 2023-12-08 20:08:44 +01:00
Alireza Ahmadi
8de5e4111f pagination and sub URI support #1300 2023-12-08 17:18:51 +01:00
Alireza Ahmadi
402e74c31d xray setting enhancements #1286 2023-12-05 18:20:44 +01:00
MHSanaei
95f17e4b7f [api] online users
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-12-05 14:40:16 +03:30
Alireza Ahmadi
6ba7f1198a separate xray page #1286 2023-12-04 19:20:46 +01:00
Alireza Ahmadi
6dbc2fc3e3 online users backend #1286 2023-12-04 19:13:21 +01:00
MHSanaei
c0686c5cd3 move restart cron to web.go
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-09-06 18:22:37 +03:30
MHSanaei
fe2a0adb0a 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
951aaca621 [sub] improve usage info in Remark
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-08-26 15:11:12 +03:30
MHSanaei
899536ef8f log level & syslog
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2023-07-31 20:11:47 +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