Specify PSK for mobile configurations without the leading ID selectors. Fixes PSK mismatches from iOS clients.

This commit is contained in:
Chris Buechler 2015-10-02 00:03:33 -05:00
parent 7788baf845
commit acdcdb2d54

View File

@ -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";
}
}
}
}