summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikael Magnusson <mikma@users.sourceforge.net>2021-01-11 22:32:20 +0100
committerMikael Magnusson <mikma@users.sourceforge.net>2021-01-12 23:34:17 +0100
commit82f69234cfa8602dcb1c08716f30796b177bd79f (patch)
tree2415aa289fd559c41f2c5e92156e60b172ae0824
parent57b25f23706f8df12d0d32533123fba09f0f80d1 (diff)
Wireguard: Don't replace peers
-rw-r--r--proto/wireguard/wireguard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/wireguard/wireguard.c b/proto/wireguard/wireguard.c
index 366357af..6ac235f7 100644
--- a/proto/wireguard/wireguard.c
+++ b/proto/wireguard/wireguard.c
@@ -36,7 +36,7 @@ int get_device(struct wg_proto *p, wg_device **pdev, const char *device_name)
wg_device *dev = calloc(1, sizeof(wg_device));
strncpy(dev->name, device_name, sizeof(dev->name));
- dev->flags = WGDEVICE_REPLACE_PEERS;
+// dev->flags = WGDEVICE_REPLACE_PEERS;
if (c->private_key)
{
dev->flags |= WGDEVICE_HAS_PRIVATE_KEY | WGDEVICE_HAS_PUBLIC_KEY;