Revision aab78bd9
Added by Pierre POMES almost 15 years ago
etc/inc/vpn.inc | ||
---|---|---|
638 | 638 |
/* Do not print localid in some cases, such as a pure-psk mobile tunnel */ |
639 | 639 |
if (($localid_type == "none") || ($ph1ent['authentication_method'] == "pre_shared_key") && isset($ph1ent['mobile'])) |
640 | 640 |
$localid_spec = " "; |
641 |
else if ($localid_type != "address") { |
|
642 |
$localid_type = "subnet"; |
|
643 |
$localid_spec = $localid_type." ".$localid_data." any"; |
|
644 |
} |
|
641 |
else { |
|
642 |
if ($localid_type != "address") { |
|
643 |
$localid_type = "subnet"; |
|
644 |
} |
|
645 |
$localid_spec = $localid_type." ".$localid_data." any"; |
|
646 |
} |
|
645 | 647 |
|
646 | 648 |
if (!isset($ph2ent['mobile'])) { |
647 | 649 |
$remoteid_type = $ph2ent['remoteid']['type']; |
Also available in: Unified diff
Fix racoon.conf generation for localid_type=address. Ticket #936