aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2016-08-30 04:35:51 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2016-08-30 04:35:51 +0200
commit967ea8c7128e87627e1da2de00f3901c3de63eb1 (patch)
treebe1ca8a8d82accedbe6cd55690694bbda7632566
parentexamples: add key extractor (diff)
downloadwireguard-tools-967ea8c7128e87627e1da2de00f3901c3de63eb1.tar.xz
wireguard-tools-967ea8c7128e87627e1da2de00f3901c3de63eb1.zip
wg: allow multiple AllowedIPs invocations
It turns out this is a somewhat natural thing to do in config files. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to '')
-rw-r--r--src/config.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/config.c b/src/config.c
index d307007..24296f8 100644
--- a/src/config.c
+++ b/src/config.c
@@ -213,7 +213,6 @@ static inline bool parse_ipmasks(struct inflatable_device *buf, size_t peer_offs
return false;
};
peer = peer_from_offset(buf->dev, peer_offset);
- peer->num_ipmasks = 0;
peer->replace_ipmasks = true;
if (!strlen(value)) {
free(mutable);