Commit Graph
1 Commits
  • fix(node): refuse a node's claim on another inbound's client
    The sync adopts each node's reported clients through SyncInbound, which resolves
    a client record by email alone — and clients.email is globally unique. A node
    reporting a colliding email therefore overwrote that client's UUID even when the
    client is attached only to a master inbound, and the master then rebuilt its own
    Xray config with the node-supplied credential: the real user locked out.
    
    Skip a reported client whose record is attached only to inbounds of other nodes.
    A record attached nowhere stays adoptable, so the soft-orphan reattach path a
    flapping node depends on is unaffected.