feat: allow selecting inbounds synchronized from nodes (#5178)

* feat: select node inbounds for synchronization

Allow node owners to import either all remote inbounds or an explicit tag-based selection. Add remote inbound discovery, persistence, snapshot filtering, API documentation, tests, and localized UI labels.

* fix

* fix: scope node reconcile and orphan sweep to selected inbound tags

In 'selected' sync mode unselected inbounds never enter the panel DB, so
ReconcileNode treated them as undesired and deleted them from the node the
first time it went config-dirty. Reconcile now only sweeps remote tags that
are part of the selection; everything else on the node is unmanaged.

Panel-created or renamed inbounds on a selected-mode node also vanished:
their tag was outside the selection, so the next traffic pull filtered them
out of the snapshot and the orphan sweep silently dropped the central row.
AddInbound/UpdateInbound now allow the tag on the node before committing.

---------

Co-authored-by: Sanaei <ho3ein.sanaei@gmail.com>
This commit is contained in:
animesha3
2026-06-11 20:48:26 +02:00
committed by GitHub
parent 2a7342baa9
commit 554d85c2f7
32 changed files with 741 additions and 16 deletions
+10
View File
@@ -860,6 +860,16 @@
"regenerateConfirm": "تولید مجدد، توکن فعلی را باطل می‌کند. هر پنل مرکزی‌ای که از این توکن استفاده می‌کند تا زمان به‌روزرسانی، دسترسی‌اش قطع می‌شود. ادامه می‌دهید؟",
"allowPrivateAddress": "اجازه آدرس خصوصی",
"allowPrivateAddressHint": "فقط برای نودهای روی شبکه خصوصی یا VPN فعال شود.",
"inboundSyncMode": "وارد کردن اینباندها",
"inboundSyncModeHint": "اینباندهای قابل وارد کردن از این نود را انتخاب کنید. نودهای موجود به‌طور پیش‌فرض همه را وارد می‌کنند.",
"allInbounds": "همه اینباندها",
"selectedInbounds": "اینباندهای انتخاب‌شده",
"inboundTags": "اینباندها",
"inboundTagsHint": "انتخاب بر اساس تگ اینباند تطبیق داده می‌شود. انتخاب خالی چیزی وارد نمی‌کند.",
"inboundTagsPlaceholder": "اینباندها را بارگیری و انتخاب کنید",
"loadInbounds": "بارگیری اینباندها از نود",
"inboundsLoaded": "{{count}} اینباند بارگیری شد",
"inboundsLoadFailed": "بارگیری اینباندها ناموفق بود",
"enable": "فعال",
"status": "وضعیت",
"cpu": "CPU",