Révision 6586b30f
Ajouté par Ermal il y a presque 10 ans
etc/inc/vpn.inc | ||
---|---|---|
541 | 541 |
|
542 | 542 |
$ikeid = $ph1ent['ikeid']; |
543 | 543 |
|
544 |
/* Only specify peer ID if we are not dealing with a mobile PSK-only tunnel */ |
|
545 |
$peerid_spec = ''; |
|
546 |
if (!(($ph1ent['authentication_method'] == "pre_shared_key") && !isset($ph1ent['mobile']))) { |
|
547 |
$peerid_spec = $peerid_data; |
|
548 |
} |
|
549 |
|
|
550 | 544 |
if ($ph1ent['mode'] == "aggressive") |
551 | 545 |
$aggressive = "yes"; |
552 | 546 |
else |
... | ... | |
614 | 608 |
break; |
615 | 609 |
} |
616 | 610 |
|
611 |
/* Only specify peer ID if we are not dealing with a mobile PSK-only tunnel */ |
|
612 |
$peerid_spec = ''; |
|
613 |
if (!(($ph1ent['authentication_method'] == "pre_shared_key") && !isset($ph1ent['mobile']))) { |
|
614 |
$peerid_spec = $peerid_data; |
|
615 |
} |
|
616 |
|
|
617 | 617 |
if (is_array($ph1ent['encryption-algorithm']) && !empty($ph1ent['encryption-algorithm']['name']) && !empty($ph1ent['hash-algorithm'])) { |
618 | 618 |
$ealgosp1 = ''; |
619 | 619 |
$ealg_id = $ph1ent['encryption-algorithm']['name']; |
Formats disponibles : Unified diff
Oops this was moved accidentally