mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #3745] [CLOSED] Add Connection Reporting for Restricted Networks #5519
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5519
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/3745
Author: @shatinz
Created: 2/4/2026
Status: ❌ Closed
Base:
main← Head:feature/connection-reporting-v2📝 Commits (1)
3a57ebf# Pull Request: Connection Reporting System & Improvements for Restricted Networks📊 Changes
49 files changed (+891 additions, -1846 deletions)
View changed files
➖
.github/copilot-instructions.md(+0 -155)➖
.github/workflows/cleanup_caches.yml(+0 -31)📝
.github/workflows/release.yml(+9 -30)📝
DockerInit.sh(+1 -1)📝
config/version(+1 -1)📝
database/db.go(+1 -0)➕
database/model/report.go(+15 -0)📝
go.mod(+15 -11)📝
go.sum(+33 -22)📝
install.sh(+3 -3)📝
sub/sub.go(+1 -27)📝
sub/subController.go(+16 -46)📝
sub/subService.go(+26 -1)📝
update.sh(+3 -3)📝
web/assets/js/model/inbound.js(+36 -140)📝
web/assets/js/model/outbound.js(+43 -105)📝
web/assets/js/model/reality_targets.js(+14 -10)📝
web/assets/js/model/setting.js(+0 -5)➕
web/controller/report.go(+78 -0)📝
web/entity/entity.go(+0 -5)...and 29 more files
📄 Description
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
New Reporting API (
/report):ReportControllerandReportServiceto handle incoming connection reports.Latency,Successstatus,Protocol, and Client Interface details.ConnectionReportmodel.Subscription Link Updates:
subServiceto append areportUrlparameter to generated subscription links (VLESS, VMess, etc.).Database Integration:
ConnectionReportschema todatabase/modeland registered it indatabase/db.gofor auto-migration.Why is this helpful for Restricted Internet Locations?
In regions with heavy internet censorship, connection stability is volatile.
reportUrlparameter embedded in the subscription link explicitly tells the client where to send connection data.Technical Details
POST /reportSystemInfo(Interface),ConnectionQuality(Latency, Success), andProtocolInfo.How to Test
reportUrlparameter in the link.ConnectionReportstable.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.