mirror of
https://github.com/opnsense/core.git
synced 2026-02-03 20:39:42 -05:00
ipsec: clear $dpdline correctly if not set #3752
This commit is contained in:
parent
7ff6b2013f
commit
046d821fef
1 changed files with 2 additions and 0 deletions
|
|
@ -1304,6 +1304,8 @@ function ipsec_configure_do($verbose = false, $interface = '')
|
|||
$dpdline .= "\n\tdpddelay = {$ph1ent['dpd_delay']}s";
|
||||
$dpdtimeout = $ph1ent['dpd_delay'] * ($ph1ent['dpd_maxfail'] + 1);
|
||||
$dpdline .= "\n\tdpdtimeout = {$dpdtimeout}s";
|
||||
} else {
|
||||
$dpdline = '';
|
||||
}
|
||||
|
||||
if (!empty($ph1ent['lifetime'])) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue