mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Send a log entry when openvpn resync is called.
This commit is contained in:
parent
04c528e72b
commit
739c9efddf
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user