Support pre-shared key

This commit is contained in:
George Hopkins 2023-10-02 16:24:37 +02:00
parent 43a20ef6b3
commit 653c314409
3 changed files with 26 additions and 1 deletions

View file

@ -221,7 +221,7 @@ impl WireGuardTunnel {
Tunn::new(
config.private_key.clone(),
config.endpoint_public_key.clone(),
None,
config.endpoint_preshared_key,
config.keepalive_seconds,
0,
None,