What is wgsd-client and how does it work?
mainThe wgsd-client is a utility designed to keep peer endpoint configurations up to date. It performs the following workflow:
- Retrieves the list of configured peers.
- Queries the
wgsdservice for matching public keys. - Updates the endpoint value for each peer if a change is detected.
Operational Model:
- Execution: The client checks all peers in a serialized fashion and then exits. It is not a long-running daemon.
- Scheduling: Because it exits after a single run, it is intended to be executed periodically using a scheduler like
cron.