diff options
author | Ermal <eri@pfsense.org> | 2010-09-15 20:11:15 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-09-15 20:11:15 +0000 |
commit | 739c9efddfe6994f2bcb88f6adccff6e2a601d21 (patch) | |
tree | ca3184771527fa21d13a43e4e46df373498cb7ac /etc/inc/openvpn.inc | |
parent | 04c528e72b89123b129f343db8195213743d238e (diff) | |
download | pfsense-739c9efddfe6994f2bcb88f6adccff6e2a601d21.zip pfsense-739c9efddfe6994f2bcb88f6adccff6e2a601d21.tar.gz |
Send a log entry when openvpn resync is called.
Diffstat (limited to 'etc/inc/openvpn.inc')
-rw-r--r-- | etc/inc/openvpn.inc | 8 |
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); } |