summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Smith <mgsmith@netgate.com>2014-07-29 10:59:04 -0500
committerMatt Smith <mgsmith@netgate.com>2014-07-29 10:59:04 -0500
commit9280a998704d182bc3a559163126e290edafbb26 (patch)
treeb498a5874464e2a0549b816f6f41671fd050b219
parentf84b7bff2857b43b40963f7e36b63e8bd6fec42a (diff)
downloadpfsense-9280a998704d182bc3a559163126e290edafbb26.zip
pfsense-9280a998704d182bc3a559163126e290edafbb26.tar.gz
Fix #3781 - 'strongswan dpdtimeout value not generated correctly'
-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 d96a72e..92da262 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -573,7 +573,8 @@ EOD;
else
$dpdline = "dpdaction = clear";
$dpdline .= "\n\tdpddelay = {$ph1ent['dpd_delay']}s";
- $dpdline .= "\n\tdpdtimeout = {$ph1ent['dpd_maxfail']}s";
+ $dpdtimeout = $ph1ent['dpd_delay'] * ($ph1ent['dpd_maxfail'] + 1);
+ $dpdline .= "\n\tdpdtimeout = {$dpdtimeout}s";
} else
$dpdline = "dpdaction = none";
OpenPOWER on IntegriCloud