From: Jason A. Donenfeld Date: Tue, 30 Aug 2016 02:35:51 +0000 (+0200) Subject: wg: allow multiple AllowedIPs invocations X-Git-Tag: v1.0.20191226~318 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=967ea8c7128e87627e1da2de00f3901c3de63eb1;p=thirdparty%2Fwireguard-tools.git 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 --- 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);