[PR #3948] [MERGED] revert: Disconnect client due to exceeded IP limit #5569

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3948
Author: @HamidRezaSZ
Created: 3/18/2026
Status: ✅ Merged
Merged: 4/19/2026
Merged by: @MHSanaei

Base: main ← Head: fix/ip-limit


📝 Commits (10+)

  • 5a6fb40 fix: Ban new IPs with fail2ban instead of disconnected the client.
  • 0b1d27b fix: Remove unused strconv import
  • 537f8d4 fix: Revert log fail2ban format
  • 588f0c4 Merge branch 'main' into fix/ip-limit
  • 8b6ff26 fix: Disconnect the client to remove the banned IPs connections
  • aed05fa fix: Fix getting the xray inbound api port
  • 334e103 fix: Run go formatter
  • e718679 fix: Disconnect only the supported protocols client
  • aaabeeb fix: Ensure the required "cipher" field is present in the shadowsocks protocol
  • d34e95e fix: Log the errors in the resolveXrayAPIPort function

📊 Changes

1 file changed (+133 additions, -0 deletions)

View changed files

📝 web/job/check_client_ip_job.go (+133 -0)

📄 Description

What is the pull request?

I think this commit was a good idea to temporarily disconnect the client and close the old banned IPs. I reverted it and also fixed this issue with retrieving the Xray API inbound port and remove only the client of the inbounds with the supported protocols.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Screenshots


🔄 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/3948 **Author:** [@HamidRezaSZ](https://github.com/HamidRezaSZ) **Created:** 3/18/2026 **Status:** ✅ Merged **Merged:** 4/19/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `fix/ip-limit` --- ### 📝 Commits (10+) - [`5a6fb40`](https://github.com/MHSanaei/3x-ui/commit/5a6fb407a69c766444fd4553b01b0c92eeae24ea) fix: Ban new IPs with fail2ban instead of disconnected the client. - [`0b1d27b`](https://github.com/MHSanaei/3x-ui/commit/0b1d27bf03a228e868a3992f65d56e9a8607d537) fix: Remove unused strconv import - [`537f8d4`](https://github.com/MHSanaei/3x-ui/commit/537f8d4f8c399f7e5182673fa90cabf44f715461) fix: Revert log fail2ban format - [`588f0c4`](https://github.com/MHSanaei/3x-ui/commit/588f0c400a567d4956ef22edde34f97635e050a5) Merge branch 'main' into fix/ip-limit - [`8b6ff26`](https://github.com/MHSanaei/3x-ui/commit/8b6ff269b654093557c1598e8a20922847f5878d) fix: Disconnect the client to remove the banned IPs connections - [`aed05fa`](https://github.com/MHSanaei/3x-ui/commit/aed05fa7f062ef92c8b27d1d4ba5b6ba4d4d9090) fix: Fix getting the xray inbound api port - [`334e103`](https://github.com/MHSanaei/3x-ui/commit/334e1038e9183c31e7460cfbfaa29af470fb389b) fix: Run go formatter - [`e718679`](https://github.com/MHSanaei/3x-ui/commit/e718679f2624db02fd8b6a0b2a2cda13dc55f40d) fix: Disconnect only the supported protocols client - [`aaabeeb`](https://github.com/MHSanaei/3x-ui/commit/aaabeeb33c802c2ea679afbfa2208d26dc6f7f6f) fix: Ensure the required "cipher" field is present in the shadowsocks protocol - [`d34e95e`](https://github.com/MHSanaei/3x-ui/commit/d34e95eba7d9ba36866e9d24ff90f97c5c8e3921) fix: Log the errors in the resolveXrayAPIPort function ### 📊 Changes **1 file changed** (+133 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `web/job/check_client_ip_job.go` (+133 -0) </details> ### 📄 Description ## What is the pull request? I think [this](https://github.com/MHSanaei/3x-ui/commit/d8fb09faaeeebe34b57f1c26aa1ab8b529327989) commit was a good idea to temporarily disconnect the client and close the old banned IPs. I reverted it and also fixed [this](https://github.com/MHSanaei/3x-ui/issues/3895) issue with retrieving the Xray API inbound port and remove only the client of the inbounds with the supported protocols. ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [x] Bug fix - [ ] New feature - [ ] Refactoring - [ ] Other ## Screenshots <!-- Add screenshots to illustrate the changes --> <!-- Remove this section if it is not applicable. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:53 +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#5569
No description provided.