[GH-ISSUE #6283] [Bug]: InboundsAdoptedAt is stamped by a sync that adopted nothing, re-opening the #5898 node wipe #4265

Closed
opened 2026-10-31 20:38:24 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @rudenko-ks on GitHub (Aug 22, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6283

Describe the bug

Adding an existing, working server as a node deletes that node's inbounds instead of importing them.

This is a regression path around the fix for #5898. That fix (200ea091, "never sweep a node's inbounds before their first adoption") gates the reconcile sweep on InboundsAdoptedAt. The gate is defeated when the node is onboarded in Selected inbounds mode with an empty tag list — the natural safe order of registering first and choosing tags afterwards.

Cause: NodeTrafficSyncJob.syncOne calls FilterNodeSnapshot(n, snap) before SetRemoteTraffic. In selected mode that filter keeps only the selected tags, so with an empty list the snapshot is emptied and setRemoteTrafficLocked adopts nothing. The flag is stamped regardless:

if !dirty && n.InboundsAdoptedAt == 0 {
    j.nodeService.MarkNodeInboundsAdopted(n.Id)
}

InboundsAdoptedAt is documented as "the first clean traffic sync that imported the node's pre-existing inbounds", but nothing was imported. From that moment if n.InboundsAdoptedAt == 0 in ReconcileNode no longer protects the node, and any tag selected later is swept because the master holds no inbound under it.

Additionally, the node dialog's Load inbounds from node control reads like an import: it lists the node's existing inbounds and lets you select them. It is read-only — POST /panel/api/nodes/inbounds calls GetRemoteInboundOptions and only fills the tag picker. Selecting the loaded entries therefore marks those tags master-owned while the master holds no matching inbound, which is precisely the state the sweep destroys. Either wiring it to a real import or relabelling it would remove the trap.

How to reproduce the problem

Two stock containers on one Docker network:

docker network create xnet
docker run -d --name xnode   --network xnet -v /srv/xnode/db:/etc/x-ui   -p 12053:2053 ghcr.io/mhsanaei/3x-ui:latest
docker run -d --name xmaster --network xnet -v /srv/xmaster/db:/etc/x-ui -p 12054:2053 ghcr.io/mhsanaei/3x-ui:latest
  1. On xnode, create one plain inbound — VLESS, TCP, security none, port 10443, tag vanilla-tag — and an API token.
  2. On xmaster, add xnode as a node with inboundSyncMode: "selected", inboundTags: [], allowPrivateAddress: true, tlsVerifyMode: "skip".
  3. Check state immediately after adding.
  4. Wait one traffic-sync cycle (~20 s) and check again.
  5. Edit the node and set inboundTags: ["vanilla-tag"] — this is what the Load inbounds from node picker produces.
  6. Wait ~15 s and check the node.

Expected behavior

Selecting a node's existing inbounds should import them into the master, or at minimum leave them untouched. A node's inbounds must never be deleted because the master has not imported them yet — which is exactly what #5898 established.

Actual behavior

Measured state at each step (select count(*) from inbounds, select inbounds_adopted_at from nodes):

step inbounds_adopted_at master inbounds node inbounds
right after adding the node 0 0 1
after one sync cycle (~20 s) non-zero 0 1
~15 s after setting the tag non-zero 0 0

The gate opens although nothing was imported, and the node's inbound is then destroyed. The master ends up with zero inbounds as well, so the configuration is lost on both sides.

Counter-check — the import path itself is fine. Same setup, but registered with inboundSyncMode: "all" while the gate is still closed: the master imports the node's inbound (0 → 1), the node keeps it (stays 1), and only then is the flag stamped. So adoption works; only its precondition is wrong.

Suggested fix: stamp InboundsAdoptedAt only when adoption could actually have happened — when SetRemoteTraffic reports it created central rows, or skip the marking while InboundSyncMode == "selected" and InboundTags is empty, since nothing is in scope to adopt.

Relevant logs

Node container, `XUI_LOG_LEVEL=debug` — the inbound is created and then removed by the sync:


DEBUG - New inbound added on local : vanilla-tag
DEBUG - Inbound deleted on local : vanilla-tag


The master logs nothing about the sweep at debug level, so the state table above is the primary evidence.

Screenshots

No response

3x-ui version

3.6.0

Xray-core version

26.7.28

How did you install 3x-ui?

install.sh script

Operating system

Ubuntu 24.04

Which parts of the panel are affected?

Multi-node (sub-nodes), Backend (API endpoints, login, settings), Frontend (UI / panel pages)

Browser (only if it is a UI bug)

No response

Is the panel behind a reverse proxy or CDN?

None

Before submitting

  • I searched existing issues and this bug has not been reported.
  • I am running the latest released version of 3x-ui (or have verified the bug still exists on it).
  • This bug report is written in English.
  • I have redacted any sensitive data (tokens, real domains, client UUIDs).
Originally created by @rudenko-ks on GitHub (Aug 22, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6283 ### Describe the bug Adding an existing, working server as a node deletes that node's inbounds instead of importing them. This is a regression path around the fix for #5898. That fix (`200ea091`, *"never sweep a node's inbounds before their first adoption"*) gates the reconcile sweep on `InboundsAdoptedAt`. The gate is defeated when the node is onboarded in **Selected inbounds** mode with an **empty** tag list — the natural safe order of registering first and choosing tags afterwards. Cause: `NodeTrafficSyncJob.syncOne` calls `FilterNodeSnapshot(n, snap)` before `SetRemoteTraffic`. In `selected` mode that filter keeps only the selected tags, so with an empty list the snapshot is emptied and `setRemoteTrafficLocked` adopts nothing. The flag is stamped regardless: ```go if !dirty && n.InboundsAdoptedAt == 0 { j.nodeService.MarkNodeInboundsAdopted(n.Id) } ``` `InboundsAdoptedAt` is documented as *"the first clean traffic sync that imported the node's pre-existing inbounds"*, but nothing was imported. From that moment `if n.InboundsAdoptedAt == 0` in `ReconcileNode` no longer protects the node, and any tag selected later is swept because the master holds no inbound under it. Additionally, the node dialog's Load inbounds from node control reads like an import: it lists the node's existing inbounds and lets you select them. It is read-only — POST /panel/api/nodes/inbounds calls GetRemoteInboundOptions and only fills the tag picker. Selecting the loaded entries therefore marks those tags master-owned while the master holds no matching inbound, which is precisely the state the sweep destroys. Either wiring it to a real import or relabelling it would remove the trap. ### How to reproduce the problem Two stock containers on one Docker network: ``` docker network create xnet docker run -d --name xnode --network xnet -v /srv/xnode/db:/etc/x-ui -p 12053:2053 ghcr.io/mhsanaei/3x-ui:latest docker run -d --name xmaster --network xnet -v /srv/xmaster/db:/etc/x-ui -p 12054:2053 ghcr.io/mhsanaei/3x-ui:latest ``` 1. On **xnode**, create one plain inbound — VLESS, TCP, security `none`, port 10443, tag `vanilla-tag` — and an API token. 2. On **xmaster**, add xnode as a node with `inboundSyncMode: "selected"`, `inboundTags: []`, `allowPrivateAddress: true`, `tlsVerifyMode: "skip"`. 3. Check state immediately after adding. 4. Wait one traffic-sync cycle (~20 s) and check again. 5. Edit the node and set `inboundTags: ["vanilla-tag"]` — this is what the **Load inbounds from node** picker produces. 6. Wait ~15 s and check the node. ### Expected behavior Selecting a node's existing inbounds should import them into the master, or at minimum leave them untouched. A node's inbounds must never be deleted because the master has not imported them yet — which is exactly what #5898 established. ### Actual behavior Measured state at each step (`select count(*) from inbounds`, `select inbounds_adopted_at from nodes`): | step | `inbounds_adopted_at` | master inbounds | node inbounds | |---|---|---|---| | right after adding the node | `0` | 0 | 1 | | after one sync cycle (~20 s) | **non-zero** | **0** | 1 | | ~15 s after setting the tag | non-zero | 0 | **0** | The gate opens although nothing was imported, and the node's inbound is then destroyed. The master ends up with zero inbounds as well, so the configuration is lost on both sides. **Counter-check — the import path itself is fine.** Same setup, but registered with `inboundSyncMode: "all"` while the gate is still closed: the master imports the node's inbound (0 → 1), the node keeps it (stays 1), and only then is the flag stamped. So adoption works; only its precondition is wrong. **Suggested fix:** stamp `InboundsAdoptedAt` only when adoption could actually have happened — when `SetRemoteTraffic` reports it created central rows, or skip the marking while `InboundSyncMode == "selected"` and `InboundTags` is empty, since nothing is in scope to adopt. ### Relevant logs ```shell Node container, `XUI_LOG_LEVEL=debug` — the inbound is created and then removed by the sync: DEBUG - New inbound added on local : vanilla-tag DEBUG - Inbound deleted on local : vanilla-tag The master logs nothing about the sweep at debug level, so the state table above is the primary evidence. ``` ### Screenshots _No response_ ### 3x-ui version 3.6.0 ### Xray-core version 26.7.28 ### How did you install 3x-ui? install.sh script ### Operating system Ubuntu 24.04 ### Which parts of the panel are affected? Multi-node (sub-nodes), Backend (API endpoints, login, settings), Frontend (UI / panel pages) ### Browser (only if it is a UI bug) _No response_ ### Is the panel behind a reverse proxy or CDN? None ### Before submitting - [x] I searched [existing issues](../issues?q=is%3Aissue) and this bug has not been reported. - [x] I am running the latest released version of 3x-ui (or have verified the bug still exists on it). - [x] This bug report is written in English. - [x] I have redacted any sensitive data (tokens, real domains, client UUIDs).
bsakaguchi 2026-10-31 20:38:24 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@github-actions[bot] commented on GitHub (Aug 22, 2026):

Confirmed — this is a real bug, still present on the default branch (1250fbb7), and your diagnosis of the mechanism is correct in every step I could check in the source. Thank you for the measured state table; it made this straightforward to verify.

What I verified

1. The snapshot is emptied before the merge sees it.
syncOne filters first and merges second:

// internal/web/job/node_traffic_sync_job.go:392-393
snap.ManagedAliases = rt.AdoptedInboundAliases()
service.FilterNodeSnapshot(n, snap)
...
// :409
changed, err := j.inboundService.SetRemoteTraffic(n.Id, snap, dirty)

With inboundSyncMode: "selected" and inboundTags: [], nodeSelectedTagSet returns an empty but non-nil map (internal/web/service/node.go:760-777), so the keep-loop in FilterNodeSnapshot matches nothing and snap.Inbounds = filtered leaves an empty slice (node.go:800-809). TestFilterNodeSnapshot pins exactly that: FilterNodeSnapshot(&model.Node{InboundSyncMode: "selected"}, none) must leave 0 inbounds (internal/web/service/node_test.go:209-213).

2. The flag is stamped anyway. The guard has no adoption term:

// internal/web/job/node_traffic_sync_job.go:417-421
if !dirty && n.InboundsAdoptedAt == 0 {
    if markErr := j.nodeService.MarkNodeInboundsAdopted(n.Id); markErr != nil {

and MarkNodeInboundsAdopted is an unconditional write (internal/web/service/node.go:1034-1041). NodeService.Create (node.go:449) does not mark the node dirty, so the very first tick after registration has dirty == false — which is why your table shows 0 at step 3 and non-zero at step 4. That directly contradicts the column's own contract: "InboundsAdoptedAt records the first clean traffic sync that imported the node's pre-existing inbounds" (internal/database/model/model.go:824-826).

3. Nothing rejects the empty selection. NodeService.normalize keeps selected mode with a zero-length tag list without error — it only trims and de-dupes (internal/web/service/node.go:421-439).

4. The sweep then fires on the newly selected tag. ReconcileNode builds desiredTags only from central rows (db.Model(model.Inbound{}).Where("node_id = ?", nodeID), internal/web/service/inbound_node.go:96), so with 0 master rows it is empty. The #5898 gate is now open:

// internal/web/service/inbound_node.go:167-192
if n.InboundsAdoptedAt == 0 {
    return errors.Join(errs...)
}
...
if selected != nil {
    if _, managed := selected[tag]; !managed {
        continue
    }
}
if err := rt.DelInbound(ctx, &model.Inbound{Tag: tag}); err != nil {

vanilla-tag is selected but not desired → DelInbound. That is your node-side Inbound deleted on local : vanilla-tag.

5. "Load inbounds from node" is read-only, as you say. The button only calls onFetchInbounds and the result feeds the Select's options (frontend/src/pages/nodes/NodeFormModal.tsx:437-453) via POST /panel/api/nodes/inbounds (frontend/src/api/queries/useNodeMutations.ts:101 → internal/web/controller/node.go:262 → NodeService.GetRemoteInboundOptions, node.go:698). The sweep's assumption is stated at node.go:723-729: EnsureInboundTagAllowed is what normally puts a tag into the selection, after the master already owns a row for it. Picking a tag by hand from that list breaks that invariant.

One thing your analysis does not cover, which matters for the fix

Stamping only on real adoption is necessary but not sufficient. In syncOne, reconcile runs before the snapshot is fetched (node_traffic_sync_job.go:366-381 vs :386), and the merge refuses to create central rows while the node is dirty:

// internal/web/service/inbound_node.go:569-572
if !ok {
    if dirty {
        continue
    }

Any node edit marks it dirty (NodeService.Update → MarkNodeDirtyTx, node.go:532). So on the tick where a newly selected tag first becomes visible, the sweep runs first and adoption is skipped — meaning a node onboarded with tag A (legitimately adopted, flag legitimately stamped) still loses tag B the moment B is added to the selection.

Workaround until this is fixed

Register the node with inboundSyncMode: "all" first, let one traffic-sync cycle import its inbounds, and only then switch to selected and narrow the list. Switching that way is safe: every remote tag already has a central row, so it lands in desiredTags and is skipped by the sweep, and deselecting a tag afterwards leaves both sides intact — TestDeselectedTagIsNotSwept pins that (internal/web/service/node_sweep_guard_test.go:89-127). Do not save a node in selected mode with an empty tag list.

Verdict: Confirmed bug
Severity: High
Confidence: High
Root cause: internal/web/job/node_traffic_sync_job.go:417 — if !dirty && n.InboundsAdoptedAt == 0 stamps the adoption gate on any clean tick, with no term for whether SetRemoteTraffic actually created central rows. Triggered whenever the filtered snapshot is empty at first sync, which FilterNodeSnapshot (internal/web/service/node.go:792-809) guarantees for InboundSyncMode == "selected" with an empty InboundTags. Introduced by 200ea091 ("fix(node): never sweep a node's inbounds before their first adoption", #5898), which added the guard in that form.
Already fixed: Still present on the default branch (1250fbb7). git log --oneline -S 'MarkNodeInboundsAdopted' returns only 200ea091; git tag --contains 200ea091 → v3.5.0, v3.6.0, so the reporter is already on the build that carries the #5898 fix.
Duplicate of: None. Related: #5898 — same destructive outcome and same gate, but that one was "no gate at all"; this is the gate opening on a sync that imported nothing, so it is a distinct root cause and #5898 stays fixed for all mode.
Evidence: internal/web/job/node_traffic_sync_job.go:393 (service.FilterNodeSnapshot(n, snap) runs before SetRemoteTraffic at :409); :417-421 (unconditional stamp); internal/web/service/node.go:760-777 (empty non-nil allow-set) and :800-809 (snap.Inbounds = filtered); :421-439 (normalize accepts an empty selection); :1034-1041 (MarkNodeInboundsAdopted); internal/database/model/model.go:824-826 (the "imported" contract); internal/web/service/inbound_node.go:96 (desiredTags source), :167-169 (the gate), :181-192 (the sweep), :569-572 (if dirty { continue } blocks adoption); internal/web/service/node_test.go:209-213 (TestFilterNodeSnapshot empty-selection case); internal/web/service/inbound_node_reconcile_test.go:101-121 (TestReconcileNode_SelectedModeLeavesUnselectedRemoteInbounds — a selected tag missing locally is deleted by design); frontend/src/pages/nodes/NodeFormModal.tsx:437-453 (the picker only fills options).
Not determined: I could not run the panel or the containers, so the state table is yours, not reproduced here; the code path above accounts for every row of it. The one thing I could not settle from source alone is whether the first stamping tick in your run had dirty == false from registration or from a reconcile that cleared it a tick earlier — it does not change the outcome, since both reach :417 with an empty snapshot. Reading inbounds_adopted_at and config_dirty together on each tick would settle it.

Suggested fix: setRemoteTrafficLocked already tracks exactly the right signal — newInboundIDs (internal/web/service/inbound_node.go:527, populated at :645) — whereas the changed value SetRemoteTraffic returns today is a broad structural-change flag (set at :701, :793, :964, :1087 for non-adoption reasons) and is not usable as-is. Because of the reconcile-before-snapshot ordering noted above, gating the stamp on real adoption alone still leaves a tag selected after the first adoption exposed, so the sweep at inbound_node.go:181-192 likely also needs to skip a selected tag the master has no row for.

@MHSanaei — confirmed High-severity bug: a node onboarded in selected mode with an empty tag list has its inbounds destroyed on the node when a tag is picked afterwards.

This reply was generated automatically; a maintainer may follow up.

<!-- gh-comment-id:5378128758 --> @github-actions[bot] commented on GitHub (Aug 22, 2026): Confirmed — this is a real bug, still present on the default branch (`1250fbb7`), and your diagnosis of the mechanism is correct in every step I could check in the source. Thank you for the measured state table; it made this straightforward to verify. ## What I verified **1. The snapshot is emptied before the merge sees it.** `syncOne` filters first and merges second: ```go // internal/web/job/node_traffic_sync_job.go:392-393 snap.ManagedAliases = rt.AdoptedInboundAliases() service.FilterNodeSnapshot(n, snap) ... // :409 changed, err := j.inboundService.SetRemoteTraffic(n.Id, snap, dirty) ``` With `inboundSyncMode: "selected"` and `inboundTags: []`, `nodeSelectedTagSet` returns an **empty but non-nil** map (`internal/web/service/node.go:760-777`), so the keep-loop in `FilterNodeSnapshot` matches nothing and `snap.Inbounds = filtered` leaves an empty slice (`node.go:800-809`). `TestFilterNodeSnapshot` pins exactly that: `FilterNodeSnapshot(&model.Node{InboundSyncMode: "selected"}, none)` must leave `0` inbounds (`internal/web/service/node_test.go:209-213`). **2. The flag is stamped anyway.** The guard has no adoption term: ```go // internal/web/job/node_traffic_sync_job.go:417-421 if !dirty && n.InboundsAdoptedAt == 0 { if markErr := j.nodeService.MarkNodeInboundsAdopted(n.Id); markErr != nil { ``` and `MarkNodeInboundsAdopted` is an unconditional write (`internal/web/service/node.go:1034-1041`). `NodeService.Create` (`node.go:449`) does not mark the node dirty, so the very first tick after registration has `dirty == false` — which is why your table shows `0` at step 3 and non-zero at step 4. That directly contradicts the column's own contract: *"InboundsAdoptedAt records the first clean traffic sync that **imported** the node's pre-existing inbounds"* (`internal/database/model/model.go:824-826`). **3. Nothing rejects the empty selection.** `NodeService.normalize` keeps `selected` mode with a zero-length tag list without error — it only trims and de-dupes (`internal/web/service/node.go:421-439`). **4. The sweep then fires on the newly selected tag.** `ReconcileNode` builds `desiredTags` only from central rows (`db.Model(model.Inbound{}).Where("node_id = ?", nodeID)`, `internal/web/service/inbound_node.go:96`), so with 0 master rows it is empty. The `#5898` gate is now open: ```go // internal/web/service/inbound_node.go:167-192 if n.InboundsAdoptedAt == 0 { return errors.Join(errs...) } ... if selected != nil { if _, managed := selected[tag]; !managed { continue } } if err := rt.DelInbound(ctx, &model.Inbound{Tag: tag}); err != nil { ``` `vanilla-tag` is selected but not desired → `DelInbound`. That is your node-side `Inbound deleted on local : vanilla-tag`. **5. "Load inbounds from node" is read-only, as you say.** The button only calls `onFetchInbounds` and the result feeds the `Select`'s `options` (`frontend/src/pages/nodes/NodeFormModal.tsx:437-453`) via `POST /panel/api/nodes/inbounds` (`frontend/src/api/queries/useNodeMutations.ts:101` → `internal/web/controller/node.go:262` → `NodeService.GetRemoteInboundOptions`, `node.go:698`). The sweep's assumption is stated at `node.go:723-729`: `EnsureInboundTagAllowed` is what normally puts a tag into the selection, *after* the master already owns a row for it. Picking a tag by hand from that list breaks that invariant. ## One thing your analysis does not cover, which matters for the fix Stamping only on real adoption is necessary but **not sufficient**. In `syncOne`, reconcile runs *before* the snapshot is fetched (`node_traffic_sync_job.go:366-381` vs `:386`), and the merge refuses to create central rows while the node is dirty: ```go // internal/web/service/inbound_node.go:569-572 if !ok { if dirty { continue } ``` Any node edit marks it dirty (`NodeService.Update` → `MarkNodeDirtyTx`, `node.go:532`). So on the tick where a newly selected tag first becomes visible, the sweep runs first and adoption is skipped — meaning a node onboarded with tag `A` (legitimately adopted, flag legitimately stamped) still loses tag `B` the moment `B` is added to the selection. ## Workaround until this is fixed Register the node with `inboundSyncMode: "all"` first, let one traffic-sync cycle import its inbounds, and only then switch to `selected` and narrow the list. Switching that way is safe: every remote tag already has a central row, so it lands in `desiredTags` and is skipped by the sweep, and deselecting a tag afterwards leaves both sides intact — `TestDeselectedTagIsNotSwept` pins that (`internal/web/service/node_sweep_guard_test.go:89-127`). Do **not** save a node in `selected` mode with an empty tag list. Verdict: Confirmed bug Severity: High Confidence: High Root cause: `internal/web/job/node_traffic_sync_job.go:417` — `if !dirty && n.InboundsAdoptedAt == 0` stamps the adoption gate on any clean tick, with no term for whether `SetRemoteTraffic` actually created central rows. Triggered whenever the filtered snapshot is empty at first sync, which `FilterNodeSnapshot` (`internal/web/service/node.go:792-809`) guarantees for `InboundSyncMode == "selected"` with an empty `InboundTags`. Introduced by `200ea091` ("fix(node): never sweep a node's inbounds before their first adoption", #5898), which added the guard in that form. Already fixed: Still present on the default branch (`1250fbb7`). `git log --oneline -S 'MarkNodeInboundsAdopted'` returns only `200ea091`; `git tag --contains 200ea091` → `v3.5.0`, `v3.6.0`, so the reporter is already on the build that carries the #5898 fix. Duplicate of: None. Related: #5898 — same destructive outcome and same gate, but that one was "no gate at all"; this is the gate opening on a sync that imported nothing, so it is a distinct root cause and #5898 stays fixed for `all` mode. Evidence: `internal/web/job/node_traffic_sync_job.go:393` (`service.FilterNodeSnapshot(n, snap)` runs before `SetRemoteTraffic` at `:409`); `:417-421` (unconditional stamp); `internal/web/service/node.go:760-777` (empty non-nil allow-set) and `:800-809` (`snap.Inbounds = filtered`); `:421-439` (`normalize` accepts an empty selection); `:1034-1041` (`MarkNodeInboundsAdopted`); `internal/database/model/model.go:824-826` (the "imported" contract); `internal/web/service/inbound_node.go:96` (`desiredTags` source), `:167-169` (the gate), `:181-192` (the sweep), `:569-572` (`if dirty { continue }` blocks adoption); `internal/web/service/node_test.go:209-213` (`TestFilterNodeSnapshot` empty-selection case); `internal/web/service/inbound_node_reconcile_test.go:101-121` (`TestReconcileNode_SelectedModeLeavesUnselectedRemoteInbounds` — a *selected* tag missing locally is deleted by design); `frontend/src/pages/nodes/NodeFormModal.tsx:437-453` (the picker only fills `options`). Not determined: I could not run the panel or the containers, so the state table is yours, not reproduced here; the code path above accounts for every row of it. The one thing I could not settle from source alone is whether the first stamping tick in your run had `dirty == false` from registration or from a reconcile that cleared it a tick earlier — it does not change the outcome, since both reach `:417` with an empty snapshot. Reading `inbounds_adopted_at` and `config_dirty` together on each tick would settle it. Suggested fix: `setRemoteTrafficLocked` already tracks exactly the right signal — `newInboundIDs` (`internal/web/service/inbound_node.go:527`, populated at `:645`) — whereas the `changed` value `SetRemoteTraffic` returns today is a broad structural-change flag (set at `:701`, `:793`, `:964`, `:1087` for non-adoption reasons) and is not usable as-is. Because of the reconcile-before-snapshot ordering noted above, gating the stamp on real adoption alone still leaves a tag selected *after* the first adoption exposed, so the sweep at `inbound_node.go:181-192` likely also needs to skip a selected tag the master has no row for. @MHSanaei — confirmed High-severity bug: a node onboarded in `selected` mode with an empty tag list has its inbounds destroyed on the node when a tag is picked afterwards. *This reply was generated automatically; a maintainer may follow up.* <!-- claude-issue:analyst -->
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#4265
No description provided.