From: Jochen Kauz Date: Tue, 28 Apr 2015 09:30:05 +0000 (+0200) Subject: vpnmain.cgi: dpd_delay/dpd_timeout wrong entry in ipsec.conf X-Git-Tag: v2.17-core91~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a24062d12bf6e8623f2316d6fbb0551ce553f0b5;p=ipfire-2.x.git vpnmain.cgi: dpd_delay/dpd_timeout wrong entry in ipsec.conf Fixes #10636 --- diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi index 0d23d0d091..381974902e 100644 --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi @@ -363,12 +363,12 @@ sub writeipsecfiles { print CONF "\tdpddelay=0\n"; } } else { - my $dpddelay = $lconfighash{$key}[30]; + my $dpddelay = $lconfighash{$key}[31]; if (!$dpddelay) { $dpddelay = 30; } print CONF "\tdpddelay=$dpddelay\n"; - my $dpdtimeout = $lconfighash{$key}[31]; + my $dpdtimeout = $lconfighash{$key}[30]; if (!$dpdtimeout) { $dpdtimeout = 120; }