mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Specify PSK for mobile configurations without the leading ID selectors. Fixes PSK mismatches from iOS clients.
This commit is contained in:
parent
7788baf845
commit
acdcdb2d54
@ -675,6 +675,9 @@ EOD;
|
||||
|
||||
if (!empty($ph1ent['pre-shared-key'])) {
|
||||
$pskconf .= "{$myid} {$peerid} : PSK 0s" . base64_encode(trim($ph1ent['pre-shared-key'])) . "\n";
|
||||
if (isset($ph1ent['mobile'])) {
|
||||
$pskconf .= " : PSK 0s" . base64_encode(trim($ph1ent['pre-shared-key'])) . "\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user