mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
net/wireguard: add a filter reload if something was reconfigured
PR: https://forum.opnsense.org/index.php?topic=37248.0
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -294,5 +294,9 @@ if (isset($opts['h']) || empty($args) || !in_array($args[0], ['start', 'stop', '
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (count($server_devs)) {
|
||||
configd_run('filter reload'); /* XXX required for NAT rules, but needs coalescing */
|
||||
}
|
||||
}
|
||||
closelog();
|
||||
|
||||
Reference in New Issue
Block a user