mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Only omit rightid for PSK mobile types. Flip the logic here as the 2_1 !
logic gets ugly.
This commit is contained in:
parent
e7f4a96432
commit
6d86e659cf
@ -857,9 +857,10 @@ EOD;
|
||||
$leftid = "leftid = {$myid_data}";
|
||||
}
|
||||
|
||||
/* Only specify peer ID if we are not dealing with a mobile PSK-only tunnel */
|
||||
$peerid_spec = '';
|
||||
if (!isset($ph1ent['mobile'])) {
|
||||
if (isset($ph1ent['mobile']) && ($ph1ent['authentication_method'] == "pre_shared_key" || $ph1ent['authentication_method'] == "xauth_psk_server")) {
|
||||
// Only specify peer ID if we are not dealing with mobile PSK
|
||||
} else {
|
||||
list ($peerid_type, $peerid_data) = ipsec_find_id($ph1ent, 'peer', $rgmap);
|
||||
if ($peerid_type != 'address' && $peerid_type != 'keyid' && $peerid_type != 'asn1dn') {
|
||||
$peerid_spec = "{$peerid_type}:{$peerid_data}";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user