summaryrefslogtreecommitdiff
path: root/proto/wireguard/wireguard.c
diff options
context:
space:
mode:
Diffstat (limited to 'proto/wireguard/wireguard.c')
-rw-r--r--proto/wireguard/wireguard.c3
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;
}
}