Projet

Général

Profil

« Précédent | Suivant » 

Révision c9b70c0a

Ajouté par Ermal il y a plus de 9 ans

Remove redundant code and check for dpd_enable checkbox to be set

Voir les différences:

etc/inc/vpn.inc
537 537
				if (!empty($ph1ent['iketype']) && $ph1ent['iketype'] != "ikev1") {
538 538
					$keyexchange = "ikev2";
539 539
					//$passive = "start";
540
				} else
541
					$passive = "route";
540
				}
542 541

  
543 542
				if (isset($ph1ent['mobile'])) {
544 543
					$right_spec = "%any";
......
570 569
					$ealgosp1 .= "!";
571 570
				}
572 571

  
573
				if ($ph1ent['dpd_delay'] && $ph1ent['dpd_maxfail']) {
572
				if (isset($ph1ent['dpd_enable']) && $ph1ent['dpd_delay'] && $ph1ent['dpd_maxfail']) {
574 573
					if ($passive == "route")
575 574
						$dpdline = "dpdaction = restart";
576 575
					else

Formats disponibles : Unified diff