aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHristo Venev <hristo@venev.name>2019-05-17 19:32:02 +0300
committerHristo Venev <hristo@venev.name>2019-05-17 20:07:57 +0300
commit81dc38168d7b0375673067435834146a499b5959 (patch)
treeb63062088422627799734af99ec0dfee334198aa
parent34065c2281dbbc84a98b5da2f6892333959c6732 (diff)
Set the persistent keepalive.
-rw-r--r--src/wg.rs3
1 files changed, 3 insertions, 0 deletions
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");