summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-09-15 20:11:15 +0000
committerErmal <eri@pfsense.org>2010-09-15 20:11:15 +0000
commit739c9efddfe6994f2bcb88f6adccff6e2a601d21 (patch)
treeca3184771527fa21d13a43e4e46df373498cb7ac
parent04c528e72b89123b129f343db8195213743d238e (diff)
downloadpfsense-739c9efddfe6994f2bcb88f6adccff6e2a601d21.zip
pfsense-739c9efddfe6994f2bcb88f6adccff6e2a601d21.tar.gz
Send a log entry when openvpn resync is called.
-rw-r--r--etc/inc/openvpn.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/inc/openvpn.inc b/etc/inc/openvpn.inc
index 1fcb77a..a71a9ba 100644
--- a/etc/inc/openvpn.inc
+++ b/etc/inc/openvpn.inc
@@ -688,10 +688,14 @@ function openvpn_resync_all($interface = "") {
file_put_contents($path_ovdh, $dh_parameters);
}
*/
+ if ($interface <> "")
+ log_error("Resyncing openvpn instances configurations for interface " . convert_friendly_interface_to_friendly_descr($interface) . ".");
+ else
+ log_error("Resyncing openvpn instances configurations.");
if (is_array($config['openvpn']['openvpn-server'])) {
foreach ($config['openvpn']['openvpn-server'] as & $settings) {
- if (!empty($interface) && $interface != $settings['interface'])
+ if ($interface <> "" && $interface != $settings['interface'])
continue;
openvpn_resync('server', $settings);
}
@@ -699,7 +703,7 @@ function openvpn_resync_all($interface = "") {
if (is_array($config['openvpn']['openvpn-client'])) {
foreach ($config['openvpn']['openvpn-client'] as & $settings) {
- if (!empty($interface) && $interface != $settings['interface'])
+ if ($interface <> "" && $interface != $settings['interface'])
continue;
openvpn_resync('client', $settings);
}
OpenPOWER on IntegriCloud