[PR #4087] [MERGED] Feature: Copy clients between inbounds #5597

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

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/4087
Author: @RsNest
Created: 4/22/2026
Status: ✅ Merged
Merged: 4/23/2026
Merged by: @MHSanaei

Base: main ← Head: feature/copy-clients


📝 Commits (10+)

  • 8813d1f feat: copy clients between inbounds
  • 38901ce fix: copy clients modal not opening
  • ea1b62e fix: copy clients modal not opening
  • 5a5676f fix: copy clients modal not opening
  • 63eb504 fix: copy clients modal not opening
  • 2abcb13 fix: copy clients modal not opening
  • 179206a fix: copy clients modal not opening
  • 55d0929 fix: copy clients modal not opening
  • eac7296 fix: copy clients modal not opening
  • 38ff07a fix: copy clients modal not opening

📊 Changes

16 files changed (+641 additions, -0 deletions)

View changed files

📝 web/controller/inbound.go (+37 -0)
📝 web/html/inbounds.html (+219 -0)
📝 web/service/inbound.go (+203 -0)
📝 web/translation/translate.ar_EG.toml (+14 -0)
📝 web/translation/translate.en_US.toml (+14 -0)
📝 web/translation/translate.es_ES.toml (+14 -0)
📝 web/translation/translate.fa_IR.toml (+14 -0)
📝 web/translation/translate.id_ID.toml (+14 -0)
📝 web/translation/translate.ja_JP.toml (+14 -0)
📝 web/translation/translate.pt_BR.toml (+14 -0)
📝 web/translation/translate.ru_RU.toml (+14 -0)
📝 web/translation/translate.tr_TR.toml (+14 -0)
📝 web/translation/translate.uk_UA.toml (+14 -0)
📝 web/translation/translate.vi_VN.toml (+14 -0)
📝 web/translation/translate.zh_CN.toml (+14 -0)
📝 web/translation/translate.zh_TW.toml (+14 -0)

📄 Description

What is the pull request?

This pull request introduces a feature that allows copying clients between inbounds via the UI.

Motivation

In real-world usage, especially with client applications like Hiddify, v2rayTun, and similar tools, it is common to maintain multiple protocols (e.g. VLESS, Hysteria2, etc.) for the same set of users via a subscription.

Currently, when adding new protocols or inbounds, users have to manually recreate the same clients across different inbounds. This process is repetitive, time-consuming, and inconvenient.

Description of changes

To simplify this workflow, a new feature has been implemented:

  • Added "Copy Clients from Inbound" action in the inbound menu
  • Allows selecting a source inbound and copying its clients into the target inbound
  • Supports bulk selection (select all / clear all)
  • Supports copying multiple clients at once
  • Allows optional flow selection for target clients (e.g. xtls-rprx-vision)
  • Displays success notification after operation

Which part of the application is affected?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

Notes

  • The feature is implemented without major changes to existing logic
  • Tested locally and works as expected
  • Compatible across different protocols (e.g. VLESS ↔ Hysteria2)
  • Eliminates the need for manual duplication of clients when using multiple protocols

Screenshots

See attached screenshots demonstrating:

  • New menu action
  • Copy modal UI
  • Success notification

🔄 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/4087 **Author:** [@RsNest](https://github.com/RsNest) **Created:** 4/22/2026 **Status:** ✅ Merged **Merged:** 4/23/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `feature/copy-clients` --- ### 📝 Commits (10+) - [`8813d1f`](https://github.com/MHSanaei/3x-ui/commit/8813d1f0d67e3abc49f77d3031cd25a319e8958f) feat: copy clients between inbounds - [`38901ce`](https://github.com/MHSanaei/3x-ui/commit/38901ce503ca7bcaa523ecced62ab16df38726ff) fix: copy clients modal not opening - [`ea1b62e`](https://github.com/MHSanaei/3x-ui/commit/ea1b62efe20dc25cfcf4fcce0319ad62dbb4a4fc) fix: copy clients modal not opening - [`5a5676f`](https://github.com/MHSanaei/3x-ui/commit/5a5676fddc15148afb5f17f1c5b1b9e1794335cf) fix: copy clients modal not opening - [`63eb504`](https://github.com/MHSanaei/3x-ui/commit/63eb504a0f030224b10c8900c45b608ce42fed18) fix: copy clients modal not opening - [`2abcb13`](https://github.com/MHSanaei/3x-ui/commit/2abcb1310a2752c373e0cef5fdffc185729d1519) fix: copy clients modal not opening - [`179206a`](https://github.com/MHSanaei/3x-ui/commit/179206a92991b5765e1f001951e347041354e61f) fix: copy clients modal not opening - [`55d0929`](https://github.com/MHSanaei/3x-ui/commit/55d0929cfe541ad6adf4a16a1d5ce67b417d8335) fix: copy clients modal not opening - [`eac7296`](https://github.com/MHSanaei/3x-ui/commit/eac7296a5d38d7438b402d99a62b73606208b157) fix: copy clients modal not opening - [`38ff07a`](https://github.com/MHSanaei/3x-ui/commit/38ff07a050a48abf91f6b814ad866bc9d242f5fe) fix: copy clients modal not opening ### 📊 Changes **16 files changed** (+641 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `web/controller/inbound.go` (+37 -0) 📝 `web/html/inbounds.html` (+219 -0) 📝 `web/service/inbound.go` (+203 -0) 📝 `web/translation/translate.ar_EG.toml` (+14 -0) 📝 `web/translation/translate.en_US.toml` (+14 -0) 📝 `web/translation/translate.es_ES.toml` (+14 -0) 📝 `web/translation/translate.fa_IR.toml` (+14 -0) 📝 `web/translation/translate.id_ID.toml` (+14 -0) 📝 `web/translation/translate.ja_JP.toml` (+14 -0) 📝 `web/translation/translate.pt_BR.toml` (+14 -0) 📝 `web/translation/translate.ru_RU.toml` (+14 -0) 📝 `web/translation/translate.tr_TR.toml` (+14 -0) 📝 `web/translation/translate.uk_UA.toml` (+14 -0) 📝 `web/translation/translate.vi_VN.toml` (+14 -0) 📝 `web/translation/translate.zh_CN.toml` (+14 -0) 📝 `web/translation/translate.zh_TW.toml` (+14 -0) </details> ### 📄 Description ## What is the pull request? This pull request introduces a feature that allows copying clients between inbounds via the UI. ## Motivation In real-world usage, especially with client applications like Hiddify, v2rayTun, and similar tools, it is common to maintain multiple protocols (e.g. VLESS, Hysteria2, etc.) for the same set of users via a subscription. Currently, when adding new protocols or inbounds, users have to manually recreate the same clients across different inbounds. This process is repetitive, time-consuming, and inconvenient. ## Description of changes To simplify this workflow, a new feature has been implemented: - Added "Copy Clients from Inbound" action in the inbound menu - Allows selecting a source inbound and copying its clients into the target inbound - Supports bulk selection (select all / clear all) - Supports copying multiple clients at once - Allows optional flow selection for target clients (e.g. xtls-rprx-vision) - Displays success notification after operation ## Which part of the application is affected? - [x] Frontend - [x] Backend ## Type of Changes - [ ] Bug fix - [x] New feature - [ ] Refactoring - [ ] Other ## Notes - The feature is implemented without major changes to existing logic - Tested locally and works as expected - Compatible across different protocols (e.g. VLESS ↔ Hysteria2) - Eliminates the need for manual duplication of clients when using multiple protocols ## Screenshots See attached screenshots demonstrating: - New menu action - Copy modal UI - Success notification --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:48:04 +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#5597
No description provided.