[PR #1997] [MERGED] Some fixes and improvements #5011

Closed
opened 2026-10-31 20:44:08 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/1997
Author: @hamid-gh98
Created: 3/8/2024
Status: ✅ Merged
Merged: 3/10/2024
Merged by: @MHSanaei

Base: main ← Head: main


📝 Commits (9)

  • 1d2e7f1 [refactor] api controller
  • 76cce39 [fix] access log path
  • 60fdde2 [fix] set select options from logs paths in xray settings
  • 61c44b6 [update] .gitignore
  • 1be4335 [lint] all .go files
  • 81878cd [update] use status code for jsonMsg and 401 to unauthorize
  • fb1f99e [update] handle response status code via axios
  • 15f75f1 [fix] set correct value if log paths is set to 'none'
  • dcb57bb [fix] iplimit - only warning access log if f2b is installed

📊 Changes

45 files changed (+212 additions, -201 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 README.md (+3 -3)
📝 database/model/model.go (+1 -0)
📝 logger/logger.go (+8 -6)
📝 main.go (+1 -0)
📝 sub/sub.go (+2 -1)
📝 sub/subController.go (+2 -2)
📝 sub/subJsonService.go (+1 -0)
📝 sub/subService.go (+1 -0)
📝 util/common/err.go (+1 -0)
📝 util/random/random.go (+8 -6)
📝 web/assets/js/axios-init.js (+14 -0)
📝 web/assets/js/util/utils.js (+5 -5)
📝 web/controller/api.go (+27 -81)
📝 web/controller/base.go (+3 -3)
📝 web/controller/inbound.go (+1 -0)
📝 web/controller/index.go (+5 -4)
📝 web/controller/server.go (+1 -0)
📝 web/controller/setting.go (+1 -0)
📝 web/controller/util.go (+6 -12)

...and 25 more files

📄 Description

Hello,

  1. Fix access log path (maybe some ppl set other paths for access log)
  2. Fix select options for logs in xray settings by the paths in config.json
  3. refactor api controller
  4. add status code to pureMsgJson to use in future
  5. response with 401 to unauthorize the requests
  6. Fix session timeout by redirecting via axios interceptors

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/1997 **Author:** [@hamid-gh98](https://github.com/hamid-gh98) **Created:** 3/8/2024 **Status:** ✅ Merged **Merged:** 3/10/2024 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (9) - [`1d2e7f1`](https://github.com/MHSanaei/3x-ui/commit/1d2e7f1b21b831c4c8211096bdfadaa50ee67ce2) [refactor] api controller - [`76cce39`](https://github.com/MHSanaei/3x-ui/commit/76cce395f4936d6582f56b2c7e0760777e8600f2) [fix] access log path - [`60fdde2`](https://github.com/MHSanaei/3x-ui/commit/60fdde24331e801085ce1d09983b7d480d23d337) [fix] set select options from logs paths in xray settings - [`61c44b6`](https://github.com/MHSanaei/3x-ui/commit/61c44b6291d8283142af3d06ba6cc8031ad4676d) [update] .gitignore - [`1be4335`](https://github.com/MHSanaei/3x-ui/commit/1be433537179360eb153200a9df5d6ce8cbf4f88) [lint] all .go files - [`81878cd`](https://github.com/MHSanaei/3x-ui/commit/81878cda615ce9b277ab80717b04b3da85a1b94b) [update] use status code for jsonMsg and 401 to unauthorize - [`fb1f99e`](https://github.com/MHSanaei/3x-ui/commit/fb1f99e98dd98d9852987e862d40a56c5cb33f98) [update] handle response status code via axios - [`15f75f1`](https://github.com/MHSanaei/3x-ui/commit/15f75f17697a63221be59ceafe6c5339e2ed9f44) [fix] set correct value if log paths is set to 'none' - [`dcb57bb`](https://github.com/MHSanaei/3x-ui/commit/dcb57bbb9141904bd6234395516484f1df3ab875) [fix] iplimit - only warning access log if f2b is installed ### 📊 Changes **45 files changed** (+212 additions, -201 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `README.md` (+3 -3) 📝 `database/model/model.go` (+1 -0) 📝 `logger/logger.go` (+8 -6) 📝 `main.go` (+1 -0) 📝 `sub/sub.go` (+2 -1) 📝 `sub/subController.go` (+2 -2) 📝 `sub/subJsonService.go` (+1 -0) 📝 `sub/subService.go` (+1 -0) 📝 `util/common/err.go` (+1 -0) 📝 `util/random/random.go` (+8 -6) 📝 `web/assets/js/axios-init.js` (+14 -0) 📝 `web/assets/js/util/utils.js` (+5 -5) 📝 `web/controller/api.go` (+27 -81) 📝 `web/controller/base.go` (+3 -3) 📝 `web/controller/inbound.go` (+1 -0) 📝 `web/controller/index.go` (+5 -4) 📝 `web/controller/server.go` (+1 -0) 📝 `web/controller/setting.go` (+1 -0) 📝 `web/controller/util.go` (+6 -12) _...and 25 more files_ </details> ### 📄 Description Hello, 1. Fix access log path (maybe some ppl set other paths for access log) 2. Fix select options for logs in xray settings by the paths in config.json 3. refactor api controller 4. add status code to pureMsgJson to use in future 5. response with 401 to unauthorize the requests 6. Fix session timeout by redirecting via axios interceptors --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:44:08 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5011
No description provided.