Project

General

Profile

« Previous | Next » 

Revision 739c9efd

Added by Ermal LUÇI almost 15 years ago

Send a log entry when openvpn resync is called.

View differences:

etc/inc/openvpn.inc
688 688
		file_put_contents($path_ovdh, $dh_parameters);
689 689
	}
690 690
*/
691
	if ($interface <> "")
692
		log_error("Resyncing openvpn instances configurations for interface " . convert_friendly_interface_to_friendly_descr($interface) . ".");
693
	else
694
		log_error("Resyncing openvpn instances configurations."); 
691 695

  
692 696
	if (is_array($config['openvpn']['openvpn-server'])) {
693 697
		foreach ($config['openvpn']['openvpn-server'] as & $settings) {
694
			if (!empty($interface) && $interface != $settings['interface'])
698
			if ($interface <> "" && $interface != $settings['interface'])
695 699
				continue;
696 700
			openvpn_resync('server', $settings);
697 701
		}
......
699 703

  
700 704
	if (is_array($config['openvpn']['openvpn-client'])) {
701 705
		foreach ($config['openvpn']['openvpn-client'] as & $settings) {
702
			if (!empty($interface) && $interface != $settings['interface'])
706
			if ($interface <> "" && $interface != $settings['interface'])
703 707
				continue;
704 708
			openvpn_resync('client', $settings);
705 709
		}

Also available in: Unified diff