mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-14 02:39:06 +02:00
In userspace bind mode, the WireGuard-go patch triggers SendStagedPackets automatically via IpcSet/handlePostConfig when the peer endpoint is updated, so RemovePeer is not needed. Only call RemovePeer for kernel mode where the kernel WireGuard implementation requires it to force a new handshake.