summaryrefslogtreecommitdiffstats
path: root/etc/rc.openvpn
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-05-07 09:24:35 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-05-07 09:24:35 -0300
commit252612d7dba66f4d152e39694d833e8eb05a2fb8 (patch)
tree358799233c52702ddce61aed7cd6a8138c9078ae /etc/rc.openvpn
parente8307ae03e2769bd0ebaa4b9441ac797b50a3800 (diff)
downloadpfsense-252612d7dba66f4d152e39694d833e8eb05a2fb8.zip
pfsense-252612d7dba66f4d152e39694d833e8eb05a2fb8.tar.gz
Fix wrong check added on commit 1f64b66bf0 that was checking openvpn server twice and don't checking openvpn client
Diffstat (limited to 'etc/rc.openvpn')
-rwxr-xr-xetc/rc.openvpn4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc.openvpn b/etc/rc.openvpn
index f2a96e0..d57594a 100755
--- a/etc/rc.openvpn
+++ b/etc/rc.openvpn
@@ -44,9 +44,9 @@ if (file_exists("{$g['varrun_path']}/booting"))
$argument = trim($argv[1], " \n");
-if(is_array($config['openvpn']['openvpn-server']) || is_array($config['openvpn']['openvpn-server'])) {
+if(is_array($config['openvpn']['openvpn-server']) || is_array($config['openvpn']['openvpn-client'])) {
if (empty($argument) || $argument == "all")
- $log_text = "all";
+ $log_text = "all";
else
$log_text = "endpoints that may use " . $argument;
log_error("OpenVPN: One or more OpenVPN tunnel endpoints may have changed its IP. Reloading " . $log_text . ".");
OpenPOWER on IntegriCloud