diff options
author | Ermal <eri@pfsense.org> | 2014-12-30 23:18:13 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-12-30 23:18:13 +0000 |
commit | 69f7d82f421fcb5eca2352e56a42c72652db1778 (patch) | |
tree | b8bfbe63c5ee8dd247fc957d74744c8e18190cb4 /etc/inc/vpn.inc | |
parent | 25bc37f7793ffe347f50ff0cd83bd14842a01fe4 (diff) | |
download | pfsense-69f7d82f421fcb5eca2352e56a42c72652db1778.zip pfsense-69f7d82f421fcb5eca2352e56a42c72652db1778.tar.gz |
Oops this should be 0s rather than 00. Linked with Ticket #4158
Diffstat (limited to 'etc/inc/vpn.inc')
-rw-r--r-- | etc/inc/vpn.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index e582fcd..f591456 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -488,9 +488,9 @@ EOD; $peerid = ($peerid_data != "allusers") ? trim($peerid_data) : ""; if (!empty($ph1ent['pre-shared-key'])) { if ($myid_type == 'fqdn' && !empty($myid_data)) - $pskconf .= "@{$myid} {$peerid} : PSK 00" . base64_encode(trim($ph1ent['pre-shared-key'])) . "\n"; + $pskconf .= "@{$myid} {$peerid} : PSK 0s" . base64_encode(trim($ph1ent['pre-shared-key'])) . "\n"; else - $pskconf .= "{$myid} {$peerid} : PSK 00" . base64_encode(trim($ph1ent['pre-shared-key'])) . "\n"; + $pskconf .= "{$myid} {$peerid} : PSK 0s" . base64_encode(trim($ph1ent['pre-shared-key'])) . "\n"; } } } @@ -500,7 +500,7 @@ EOD; if (is_array($config['system']) && is_array($config['system']['user'])) { foreach ($config['system']['user'] as $user) { if (!empty($user['ipsecpsk'])) { - $pskconf .= "%any {$user['name']} : PSK 00" . base64_encode($user['ipsecpsk']) . "\n"; + $pskconf .= "%any {$user['name']} : PSK 0s" . base64_encode($user['ipsecpsk']) . "\n"; } } unset($user); @@ -511,7 +511,7 @@ EOD; foreach ($ipseccfg['mobilekey'] as $key) { if ($key['ident'] == "allusers") $key['ident'] = '%any'; - $pskconf .= "%any {$key['ident']} : PSK 00" . base64_encode($key['pre-shared-key']) . "\n"; + $pskconf .= "%any {$key['ident']} : PSK 0s" . base64_encode($key['pre-shared-key']) . "\n"; } unset($key); } |