mirror of
https://github.com/lucaspalomodevelop/opnsense-core.git
synced 2026-03-13 00:07:27 +00:00
ipsec: clear $dpdline correctly if not set #3752
This commit is contained in:
parent
7ff6b2013f
commit
046d821fef
@ -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…
x
Reference in New Issue
Block a user