Commit graph

67 commits

Author SHA1 Message Date
shatinz
3a57ebffe7 # Pull Request: Connection Reporting System & Improvements for Restricted Networks
## Description
This PR introduces a comprehensive **Connection Reporting System** designed to improve the reliability and monitoring of connections, specifically tailored for environments with restricted internet access (e.g., active censorship, GFW).

### Key Changes
1.  **New Reporting API (`/report`)**:
    *   Added `ReportController` and `ReportService` to handle incoming connection reports.
    *   Endpoint receives data such as `Latency`, `Success` status, `Protocol`, and Client Interface details.
    *   Data is persisted to the database via the new `ConnectionReport` model.

2.  **Subscription Link Updates**:
    *   Modified `subService` to append a `reportUrl` parameter to generated subscription links (VLESS, VMess, etc.).
    *   This allows compatible clients to automatically discover the reporting endpoint and send feedback.

3.  **Database Integration**:
    *   Added `ConnectionReport` schema to `database/model` and registered it in `database/db.go` for auto-migration.

## Why is this helpful for Restricted Internet Locations?
In regions with heavy internet censorship, connection stability is volatile.
*   **Dynamic Reporting Endpoint**: The `reportUrl` parameter embedded in the subscription link explicitly tells the client *where* to send connection data.
*   **Bypassing Blocking**: By decoupling the reporting URL from the node address, clients can ensure diagnostic data reaches the panel even if specific node IPs are being interfered with (assuming the panel itself is reachable).
*   **Real-time Network Intelligence**: This mechanism enables the panel to aggregate "ground truth" data from clients inside the restricted network (e.g., latency, accessibility of specific protocols), allowing admins to react faster to blocking events.
*   **Protocol Performance Tracking**: Allows comparison of different protocols (Reality vs. VLESS+TLS vs. Trojan) based on real-world latency and success rates from actual users.
*   **Rapid Troubleshooting**: Administrators can see connection quality trends and rotate IPs/domains proactively when success rates drop, minimizing downtime for users.

## Technical Details
*   **API Endpoint**: `POST /report`
*   **Payload Format**: JSON containing `SystemInfo` (Interface), `ConnectionQuality` (Latency, Success), and `ProtocolInfo`.
*   **Security**: Reports are tied to valid client request contexts (implementation detail: ensure endpoint is rate-limited or authenticated if necessary, though currently designed for open reporting from valid sub links).

## How to Test
1.  Update the panel.
2.  Generate a subscription link.
3.  Observe the `reportUrl` parameter in the link.
4.  Simulate a client POST to the report URL and verify the entry in the `ConnectionReports` table.
2026-02-04 13:30:00 +03:30
MHSanaei
ff128a7275
Xray Core v26.2.2 2026-02-02 17:57:56 +01:00
MHSanaei
e35213bc73
Update Xray-core to v26.1.31 and related dependencies
Bump Xray-core version to v26.1.31 in build scripts and server logic. Update Go dependencies including gopsutil, bytedance/sonic, circl, miekg/dns, go-proxyproto, sagernet/sing, and others to their latest versions. Adjust version check in GetXrayVersions to require at least v26.1.31.
2026-02-01 03:30:09 +01:00
MHSanaei
20ec863f51
Xray Core v26.1.18 2026-01-18 16:06:19 +01:00
Nebulosa
719ae0e014
Remove wget dependency from everywhere (#3598)
* Remove wget dependency

* Merge branch 'curl_only' of https://github.com/nebulosa2007/3x-ui into nebulosa2007-curl_only

---------

Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com>
2026-01-03 06:41:40 +01:00
lolka1333
313a2acbf6
feat: Add WebSocket support for real-time updates and enhance VLESS settings (#3605)
* feat: add support for trusted X-Forwarded-For and testseed parameters in VLESS settings

* chore: update Xray Core version to 25.12.8 in release workflow

* chore: update Xray Core version to 25.12.8 in Docker initialization script

* chore: bump version to 2.8.6 and add watcher for security changes in inbound modal

* refactor: remove default and random seed buttons from outbound form

* refactor: update VLESS form to rename 'Test Seed' to 'Vision Seed' and change button functionality for seed generation

* refactor: enhance TLS settings form layout with improved button styling and spacing

* feat: integrate WebSocket support for real-time updates on inbounds and Xray service status

* chore: downgrade version to 2.8.5

* refactor: translate comments to English

* fix: ensure testseed is initialized correctly for VLESS protocol and improve client handling in inbound modal

* refactor: simplify VLESS divider condition by removing unnecessary flow checks

* fix: add fallback date formatting for cases when IntlUtil is not available

* refactor: simplify WebSocket message handling by removing batching and ensuring individual message delivery

* refactor: disable WebSocket notifications in inbound and index HTML files

* refactor: enhance VLESS testseed initialization and button functionality in inbound modal

* fix:

* refactor: ensure proper WebSocket URL construction by normalizing basePath

* fix:

* fix:

* fix:

* refactor: update testseed methods for improved reactivity and binding in VLESS form

* logger info to debug

---------

Co-authored-by: lolka1333 <test123@gmail.com>
2026-01-03 05:26:00 +01:00
MHSanaei
68240061aa
Xray Core 25.12.2 2025-12-03 23:45:28 +01:00
mhsanaei
2b2ed3349a
Xray-core v25.10.15 2025-10-15 11:40:04 +02:00
mhsanaei
dc3b0d218a
Xray Core v25.9.11 2025-09-10 14:39:07 +02:00
mhsanaei
1e2ff650ad
Xray Core v25.9.10 + GO v1.25.1 2025-09-10 08:40:08 +02:00
mhsanaei
e5126806d7
xray core v25.9.5 2025-09-07 22:45:20 +02:00
mhsanaei
023eb513e4
Xray Core v25.8.29 2025-08-30 10:03:32 +02:00
mhsanaei
267024c43f
xray core v25.8.3 2025-08-04 01:28:14 +02:00
mhsanaei
f5f4a530cc
xray core v25.7.26 2025-07-27 16:54:35 +02:00
mhsanaei
b4dae36345
xray core v25.7.24 2025-07-24 15:26:55 +02:00
Shishkevich D.
dff4ad31ff
chore: up minimal xray-core version to v25.6.8 2025-06-16 12:22:56 +07:00
mhsanaei
182e591c48
Xray-core v25.5.16 2025-05-16 13:05:46 +02:00
mhsanaei
01be9fec95
Xray Core v25.4.30 2025-04-30 10:56:55 +02:00
mhsanaei
878e0d02cd
Xray Core v25.3.31
+update dependencies
2025-04-04 21:20:07 +02:00
mhsanaei
f408bd7c77
Xray core v2.3.6 + update dependencies 2025-03-10 09:51:31 +01:00
mhsanaei
0f97eca314
Xray core v25.3.3 2025-03-04 09:54:10 +01:00
mhsanaei
e754523689
Xray core v25.2.21 2025-02-22 13:46:15 +01:00
mhsanaei
aae0cb37b7
Xray Core v25.1.30 2025-02-03 17:37:01 +01:00
mhsanaei
34e2d961f5
quiet build
Co-Authored-By: Alireza Ahmadi <alireza7@gmail.com>
2025-01-27 01:09:39 +01:00
mhsanaei
9fb9d7201e
Add custom v2ray rules for Russia
runetfreedom/russia-v2ray-rules-dat
2025-01-05 15:39:40 +01:00
mhsanaei
b6a919218a
Xray Core v25.1.1 2025-01-01 18:30:36 +01:00
mhsanaei
7ab8164de4
Xray Core v24.12.28 2024-12-28 15:14:39 +01:00
mhsanaei
e33ad809d6
Xray Core v24.12.18 2024-12-19 10:48:43 +01:00
MHSanaei
88a17cd227
Xray core v24.12.15 2024-12-16 10:00:15 +01:00
mhsanaei
337729529a
Xray Core v24.11.21 2024-12-03 23:09:38 +01:00
mhsanaei
c4a5c059e3
Xray Core v24.11.21 2024-11-21 17:31:21 +03:30
mhsanaei
7ad4a3dffc
Xray-core v24.11.11 2024-11-13 14:23:53 +03:30
mhsanaei
1bcdc54b68
Xray Core v24.10.31 2024-10-31 09:47:39 +01:00
mhsanaei
dff2496d73
Xray Core v24.10.16 2024-10-16 12:08:01 +02:00
mhsanaei
f48df1e5c0
Xray Core v24.9.30 2024-10-01 09:35:06 +02:00
mhsanaei
dc29e858c9
Xray Core v24.9.19 2024-09-24 15:15:19 +02:00
mhsanaei
dc1c1eb998 Xray Core v24.9.16 2024-09-16 16:48:44 +02:00
mhsanaei
2d3666e339 Xray core v24.9.7 2024-09-09 10:35:39 +02:00
mhsanaei
898f80cb30 Xray Core v1.8.24 2024-08-30 09:25:49 +02:00
mhsanaei
bae89272b0 Xray Core v1.8.23 2024-07-29 12:33:46 +02:00
mhsanaei
8bd3827b41 Xray Core v1.8.21 2024-07-22 00:12:58 +02:00
mhsanaei
4d4eef8d8a Xray Core v1.8.19 2024-07-17 16:21:03 +02:00
mhsanaei
f21c293693 Xray core v1.8.18 2024-07-16 01:33:24 +02:00
mhsanaei
8018023187 Xray core v1.8.17 + GO v1.22.5 2024-07-12 21:42:32 +02:00
mhsanaei
546d676472 Xray Core v1.8.16 2024-06-25 08:56:52 +02:00
mhsanaei
52b02fdef9 Xray Core v1.8.15 2024-06-18 10:03:44 +02:00
mhsanaei
07245d614a Upgrade - Xray Core v1.8.13 2024-05-23 10:52:25 +02:00
mhsanaei
6e734553e2 v2.3.3 2024-05-22 21:48:41 +02:00
mhsanaei
5aae32c888 update - xray core v1.8.12 2024-05-22 20:06:48 +02:00
mhsanaei
490048a975 upgrade xray to v1.8.11 2024-04-26 10:06:13 +02:00