Merge branch 'ipsec-on-demand' into next
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Mar 2019 15:25:36 +0000 (15:25 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 5 Mar 2019 15:25:36 +0000 (15:25 +0000)
1  2 
html/cgi-bin/vpnmain.cgi

                $cgiparams{'DPD_TIMEOUT'}               = $confighash{$cgiparams{'KEY'}}[30];
                $cgiparams{'DPD_DELAY'}                 = $confighash{$cgiparams{'KEY'}}[31];
                $cgiparams{'FORCE_MOBIKE'}              = $confighash{$cgiparams{'KEY'}}[32];
+               $cgiparams{'START_ACTION'}              = $confighash{$cgiparams{'KEY'}}[33];
                $cgiparams{'INACTIVITY_TIMEOUT'}        = $confighash{$cgiparams{'KEY'}}[34];
 +              $cgiparams{'MODE'}                      = $confighash{$cgiparams{'KEY'}}[35];
 +              $cgiparams{'INTERFACE_MODE'}            = $confighash{$cgiparams{'KEY'}}[36];
 +              $cgiparams{'INTERFACE_ADDRESS'}         = $confighash{$cgiparams{'KEY'}}[37];
 +              $cgiparams{'INTERFACE_MTU'}             = $confighash{$cgiparams{'KEY'}}[38];
  
                if (!$cgiparams{'DPD_DELAY'}) {
                        $cgiparams{'DPD_DELAY'} = 30;
        $confighash{$key}[30] = $cgiparams{'DPD_TIMEOUT'};
        $confighash{$key}[31] = $cgiparams{'DPD_DELAY'};
        $confighash{$key}[32] = $cgiparams{'FORCE_MOBIKE'};
+       $confighash{$key}[33] = $cgiparams{'START_ACTION'};
        $confighash{$key}[34] = $cgiparams{'INACTIVITY_TIMEOUT'};
 +      $confighash{$key}[35] = $cgiparams{'MODE'};
 +      $confighash{$key}[36] = $cgiparams{'INTERFACE_MODE'};
 +      $confighash{$key}[37] = $cgiparams{'INTERFACE_ADDRESS'};
 +      $confighash{$key}[38] = $cgiparams{'INTERFACE_MTU'};
  
        # free unused fields!
 -      $confighash{$key}[6] = 'off';
        $confighash{$key}[15] = 'off';
  
        &General::writehasharray("${General::swroot}/vpn/config", \%confighash);
@@@ -2080,7 -1987,7 +2082,8 @@@ VPNCONF_ERROR
        <input type='hidden' name='DPD_DELAY' value='$cgiparams{'DPD_DELAY'}' />
        <input type='hidden' name='DPD_TIMEOUT' value='$cgiparams{'DPD_TIMEOUT'}' />
        <input type='hidden' name='FORCE_MOBIKE' value='$cgiparams{'FORCE_MOBIKE'}' />
+       <input type='hidden' name='START_ACTION' value='$cgiparams{'START_ACTION'}' />
 +      <input type='hidden' name='INACTIVITY_TIMEOUT' value='$cgiparams{'INACTIVITY_TIMEOUT'}' />
  END
  ;
        if ($cgiparams{'KEY'}) {