aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");