From 81dc38168d7b0375673067435834146a499b5959 Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Fri, 17 May 2019 19:32:02 +0300 Subject: Set the persistent keepalive. --- src/wg.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/wg.rs b/src/wg.rs index 06188b6..c3eeb57 100644 --- a/src/wg.rs +++ b/src/wg.rs @@ -75,6 +75,9 @@ impl Device { proc.arg("peer"); proc.arg(pubkey.to_string()); + proc.arg("persistent-keepalive"); + proc.arg(conf.keepalive.to_string()); + if old_endpoint != conf.endpoint { if let Some(ref endpoint) = conf.endpoint { proc.arg("endpoint"); -- cgit