diff options
| author | zd <67220210+0zd0@users.noreply.github.com> | 2025-12-23 17:43:25 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-23 17:43:25 +0300 |
| commit | 4c797dc154b2b50f7d2d2bdfd28b7c5e30a78cb4 (patch) | |
| tree | 7816c33a9b60c7b85ac423f67896d72b3fbcde1a | |
| parent | f000322a06f78273f48fb354768418c6fd8c3290 (diff) | |
fix: display of outbound traffic (#3604)
shows the direction of traffic
| -rw-r--r-- | .env.example | 4 | ||||
| -rw-r--r-- | CONTRIBUTING.md | 5 | ||||
| -rw-r--r-- | web/html/xray.html | 4 |
3 files changed, 11 insertions, 2 deletions
diff --git a/.env.example b/.env.example new file mode 100644 index 00000000..62aa8c0b --- /dev/null +++ b/.env.example @@ -0,0 +1,4 @@ +XUI_DEBUG=true +XUI_DB_FOLDER=x-ui +XUI_LOG_FOLDER=x-ui +XUI_BIN_FOLDER=x-ui
\ No newline at end of file diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..5455e8b5 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,5 @@ +## Local Development Setup + +- Create a directory named `x-ui` in the project root +- Rename `.env.example` to `.env ` +- Run `main.go`
\ No newline at end of file diff --git a/web/html/xray.html b/web/html/xray.html index 4dacd021..f4d89c84 100644 --- a/web/html/xray.html +++ b/web/html/xray.html @@ -527,10 +527,10 @@ findOutboundTraffic(o) { for (const otraffic of this.outboundsTraffic) { if (otraffic.tag == o.tag) { - return SizeFormatter.sizeFormat(otraffic.up) + ' / ' + SizeFormatter.sizeFormat(otraffic.down); + return `↑ ${SizeFormatter.sizeFormat(otraffic.up)} / ${SizeFormatter.sizeFormat(otraffic.down)} ↓` } } - return SizeFormatter.sizeFormat(0) + ' / ' + SizeFormatter.sizeFormat(0); + return `${SizeFormatter.sizeFormat(0)} / ${SizeFormatter.sizeFormat(0)}` }, findOutboundAddress(o) { serverObj = null; |
