From 82f69234cfa8602dcb1c08716f30796b177bd79f Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Mon, 11 Jan 2021 22:32:20 +0100 Subject: Wireguard: Don't replace peers --- proto/wireguard/wireguard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3