core/wireguard: add support for WireGuard peers

That is slightly complex, because we need to (DNS) resolve the endpoints,
and we also have to retry periodically. For example, initially we may be
unable to resolve an endpoint, but later we may be.

What is also interesting is that during assume and reapply, we may not
have all information in the profile. Most notably, the private keys will
be missing. We need to cope with that and not reconfigure keys. However,
we still need to resolve names and update the endpoints.
This commit is contained in:
Thomas Haller
2019-01-12 12:33:35 +01:00
parent 7f455f0519
commit 2148d09482

File diff suppressed because it is too large Load Diff