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>
This commit is contained in:
parent
cb8be29c18
commit
967ea8c712
1 changed files with 0 additions and 1 deletions
|
@ -213,7 +213,6 @@ static inline bool parse_ipmasks(struct inflatable_device *buf, size_t peer_offs
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
peer = peer_from_offset(buf->dev, peer_offset);
|
peer = peer_from_offset(buf->dev, peer_offset);
|
||||||
peer->num_ipmasks = 0;
|
|
||||||
peer->replace_ipmasks = true;
|
peer->replace_ipmasks = true;
|
||||||
if (!strlen(value)) {
|
if (!strlen(value)) {
|
||||||
free(mutable);
|
free(mutable);
|
||||||
|
|
Loading…
Reference in a new issue