mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Resync OpenVPN instances that use any changed gateway groups
This commit is contained in:
parent
8bca080543
commit
30ca7b7ebc
@ -43,6 +43,7 @@ require("guiconfig.inc");
|
||||
require_once("functions.inc");
|
||||
require_once("filter.inc");
|
||||
require_once("shaper.inc");
|
||||
require_once("openvpn.inc");
|
||||
|
||||
if (!is_array($config['gateways']['gateway_group']))
|
||||
$config['gateways']['gateway_group'] = array();
|
||||
@ -68,6 +69,14 @@ if ($_POST) {
|
||||
$savemsg = get_std_save_message($retval);
|
||||
if ($retval == 0)
|
||||
clear_subsystem_dirty('staticroutes');
|
||||
|
||||
foreach ($a_gateway_groups as $gateway_group) {
|
||||
$gw_subsystem = 'gwgroup.' . $gateway_group['name'];
|
||||
if (is_subsystem_dirty($gw_subsystem)) {
|
||||
openvpn_resync_gwgroup($gateway_group['name']);
|
||||
clear_subsystem_dirty($gw_subsystem);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user