diff options
author | Chris Buechler <cmb@pfsense.org> | 2015-10-02 00:03:33 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2015-10-02 00:14:26 -0500 |
commit | 41d968bd163112361c86d077bec8a4cd59dd6828 (patch) | |
tree | b71c539208de8af32f92993f90ec33c9786bd418 /src | |
parent | fc8415f0a9abe5023f06c92517788ffaa3cc8bc8 (diff) | |
download | pfsense-41d968bd163112361c86d077bec8a4cd59dd6828.zip pfsense-41d968bd163112361c86d077bec8a4cd59dd6828.tar.gz |
Specify PSK for mobile configurations without the leading ID selectors. Fixes PSK mismatches from iOS clients.
Diffstat (limited to 'src')
-rw-r--r-- | src/etc/inc/vpn.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/etc/inc/vpn.inc b/src/etc/inc/vpn.inc index 7ddd8f2..4ecedaf 100644 --- a/src/etc/inc/vpn.inc +++ b/src/etc/inc/vpn.inc @@ -671,6 +671,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"; + } } } } |