Sunil Mohan Adapa 49acf4fb5c
wireguard: Don't setup server implicitly
- When waiting after a auto-client-add operation, sometimes, it is not detected
that server connection exists. Then a new server setup is triggered and this
causes a duplicate wireguard server connection created. Fix this by making wait
operations strictly read-only.

- Also add more safety checks during waiting based one of the seen failures.

Tests:

- Functional tests work.

- Auto add client works much more reliably.

[jvalleroy: Update docstring]
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
2026-10-06 06:59:53 -04:00
..