diff options
author | Phil Davis <phil.davis@world.inf.org> | 2013-03-29 14:29:12 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@world.inf.org> | 2013-03-29 14:29:12 +0545 |
commit | 30ca7b7ebcb6d48a6bd8bc57ddffcf6c64c68e7b (patch) | |
tree | 4ca6e2ef83527cfe7723769f3dc8de018f8752a7 /usr/local/www/system_gateway_groups.php | |
parent | 8bca0805439ad67deffb4a1b688fc23dfbd9f156 (diff) | |
download | pfsense-30ca7b7ebcb6d48a6bd8bc57ddffcf6c64c68e7b.zip pfsense-30ca7b7ebcb6d48a6bd8bc57ddffcf6c64c68e7b.tar.gz |
Resync OpenVPN instances that use any changed gateway groups
Diffstat (limited to 'usr/local/www/system_gateway_groups.php')
-rwxr-xr-x | usr/local/www/system_gateway_groups.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/usr/local/www/system_gateway_groups.php b/usr/local/www/system_gateway_groups.php index d59be30..63a95e3 100755 --- a/usr/local/www/system_gateway_groups.php +++ b/usr/local/www/system_gateway_groups.php @@ -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); + } + } } } |