diff options
author | Matt Smith <mgsmith@netgate.com> | 2014-07-29 10:59:04 -0500 |
---|---|---|
committer | Matt Smith <mgsmith@netgate.com> | 2014-07-29 10:59:04 -0500 |
commit | 9280a998704d182bc3a559163126e290edafbb26 (patch) | |
tree | b498a5874464e2a0549b816f6f41671fd050b219 | |
parent | f84b7bff2857b43b40963f7e36b63e8bd6fec42a (diff) | |
download | pfsense-9280a998704d182bc3a559163126e290edafbb26.zip pfsense-9280a998704d182bc3a559163126e290edafbb26.tar.gz |
Fix #3781 - 'strongswan dpdtimeout value not generated correctly'
-rw-r--r-- | etc/inc/vpn.inc | 3 |
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"; |