]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
wg: allow multiple AllowedIPs invocations
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 30 Aug 2016 02:35:51 +0000 (04:35 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 30 Aug 2016 02:35:51 +0000 (04:35 +0200)
It turns out this is a somewhat natural thing to do in config files.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/config.c

index d3070072b9e70dfea5a310df830931546f855060..24296f83e4459fa199a4d2653fa0d8a2a9a9d4a9 100644 (file)
@@ -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);