summaryrefslogtreecommitdiffstats
path: root/etc/inc/vpn.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r--etc/inc/vpn.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 0a584d5..1183ad4 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -676,6 +676,7 @@ EOD;
$hostnames = "";
array_unique($dnswatch_list);
$hostnames = implode("\n", $dnswatch_list);
+ $hostnames .= "\n";
file_put_contents("{$g['varetc_path']}/dnswatch-ipsec.hosts", $hostnames);
killbypid("{$g['varrun_path']}/dnswatch-ipsec.pid");
mwexec("/usr/local/sbin/dnswatch {$g['varrun_path']}/dnswatch-ipsec.pid $interval /etc/rc.newipsecdns {$g['varetc_path']}/dnswatch-ipsec.hosts", false);
@@ -1348,4 +1349,4 @@ function return_ipsec_sad_array() {
return($sad);
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud