MCPcopy Create free account
hub / github.com/PasarGuard/node / UpdateUsers

Method UpdateUsers

backend/wireguard/user.go:32–37  ·  view source on GitHub ↗

UpdateUsers performs partial reconciliation for users provided in the request.

(_ context.Context, users []*common.User)

Source from the content-addressed store, hash-verified

30
31// UpdateUsers performs partial reconciliation for users provided in the request.
32func (wg *WireGuard) UpdateUsers(_ context.Context, users []*common.User) error {
33 wg.syncMu.Lock()
34 defer wg.syncMu.Unlock()
35
36 return wg.syncUsersPartialReconcile(users)
37}
38
39// UpdateUsersAndRestart applies targeted user updates, then rebuilds the full
40// peer snapshot so interface-wide settings like keepalive are reapplied to all peers.

Calls 1