summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-03-23 17:36:36 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-03-23 17:36:36 -0400
commite28d3bb3e3c7d9cba9aa0dfa8e18bada2c0a219b (patch)
tree85a1878ea39cfbc2f97da902d9bc1a11e962f109 /etc
parentdfdc44a6c1c602d6b87b01fcb9f2a6f9ebf097e1 (diff)
downloadpfsense-e28d3bb3e3c7d9cba9aa0dfa8e18bada2c0a219b.zip
pfsense-e28d3bb3e3c7d9cba9aa0dfa8e18bada2c0a219b.tar.gz
Ensure dpddelay is a value, not that its simply set leading to racoon.conf errors:
my /var/etc/racoon.conf file has: "dpd_delay ;" Reported in ##pfSense on FreeNODE by Overrand
Diffstat (limited to 'etc')
-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 1d4f93d..14e4b52 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -509,8 +509,9 @@ EOD;
if (isset($tunnel['natt'])) {
$nattline = "nat_traversal on;";
}
+
$dpdline = '';
- if (isset($tunnel['dpddelay'])) {
+ if (is_numeric($tunnel['dpddelay'])) {
$dpdline = "dpd_delay {$tunnel['dpddelay']};";
}
OpenPOWER on IntegriCloud