diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2019-03-01 21:48:25 +0100 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2019-03-08 00:11:47 +0100 |
commit | 93165cde35fda7445f190c01713043cc65d8dd4f (patch) | |
tree | 3cd3380badd546c6e6e0be569071746b93831983 /proto/wireguard/wireguard.c | |
parent | 051f24f7c2b0a8210e5c866ea24e69c01edf5ee8 (diff) |
wireguard: Fix allowedip deletion
Diffstat (limited to 'proto/wireguard/wireguard.c')
-rw-r--r-- | proto/wireguard/wireguard.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/proto/wireguard/wireguard.c b/proto/wireguard/wireguard.c index e9cb9cf2..cdc50317 100644 --- a/proto/wireguard/wireguard.c +++ b/proto/wireguard/wireguard.c @@ -177,7 +177,7 @@ wg_rt_notify(struct proto *P, struct channel *ch UNUSED, struct network *n, bool found = false; struct wg_peer *peer = NULL; wg_for_each_peer(dev, peer) { - // Look for public key + // Remove from all peers found = true; if (found) { @@ -238,7 +238,6 @@ wg_rt_notify(struct proto *P, struct channel *ch UNUSED, struct network *n, peer->flags |= WGPEER_REPLACE_ALLOWEDIPS; int res = wg_set_device(dev); log(L_TRACE "WG: wg_set_device %d", res); - break; } } |