Revision 0c8ec13a
Added by Seth over 15 years ago
etc/inc/vpn.inc | ||
---|---|---|
676 | 676 |
$hostnames = ""; |
677 | 677 |
array_unique($dnswatch_list); |
678 | 678 |
$hostnames = implode("\n", $dnswatch_list); |
679 |
$hostnames .= "\n"; |
|
679 | 680 |
file_put_contents("{$g['varetc_path']}/dnswatch-ipsec.hosts", $hostnames); |
680 | 681 |
killbypid("{$g['varrun_path']}/dnswatch-ipsec.pid"); |
681 | 682 |
mwexec("/usr/local/sbin/dnswatch {$g['varrun_path']}/dnswatch-ipsec.pid $interval /etc/rc.newipsecdns {$g['varetc_path']}/dnswatch-ipsec.hosts", false); |
... | ... | |
1348 | 1349 |
return($sad); |
1349 | 1350 |
} |
1350 | 1351 |
|
1351 |
?> |
|
1352 |
?> |
Also available in: Unified diff
Make sure that we always end the file with a carriage return, if we have a single record the carriage return is missing which causes dnswatch to crash.