summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_gateway_groups.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2013-03-29 14:29:12 +0545
committerPhil Davis <phil.davis@world.inf.org>2013-03-29 14:29:12 +0545
commit30ca7b7ebcb6d48a6bd8bc57ddffcf6c64c68e7b (patch)
tree4ca6e2ef83527cfe7723769f3dc8de018f8752a7 /usr/local/www/system_gateway_groups.php
parent8bca0805439ad67deffb4a1b688fc23dfbd9f156 (diff)
downloadpfsense-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-xusr/local/www/system_gateway_groups.php9
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);
+ }
+ }
}
}
OpenPOWER on IntegriCloud