Skip to content

Commit

Permalink
net/wireguard: add a filter reload if something was reconfigured
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed Nov 29, 2023
1 parent 0b70e35 commit 7b94f91
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion net/wireguard/Makefile
@@ -1,6 +1,6 @@
PLUGIN_NAME= wireguard
PLUGIN_VERSION= 2.5
PLUGIN_REVISION= 1
PLUGIN_REVISION= 2
PLUGIN_COMMENT= WireGuard VPN service kernel implementation
PLUGIN_DEPENDS= wireguard-kmod
PLUGIN_CONFLICTS= wireguard-go
Expand Down
2 changes: 2 additions & 0 deletions net/wireguard/pkg-descr
Expand Up @@ -20,6 +20,8 @@ Changelog

* Fix error with empty tunnel address in instance (contributed by Monviech)
* Switch "setconf" to "syncconf" on (re)configuration
* Fix regression of UUID return in setClientAction()
* Reload the packet filter after reconfiguration
* Allow instance selection from peer
* Use "syncconf" on newwanip event
* CARP event handling improvements
Expand Down
Expand Up @@ -294,5 +294,9 @@ function get_stat_hash($fhandle)
}
}
}

if (count($server_devs)) {
configd_run('filter reload'); /* XXX required for NAT rules, but needs coalescing */
}
}
closelog();

0 comments on commit 7b94f91

Please sign in to comment.