Fix writing of preshared key to config format

This commit is contained in:
Roopesh Chander 2019-02-09 14:57:24 +05:30
parent 80f48aec81
commit 3cea15f6f2
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ extension TunnelConfiguration {
if let publicKey = peer.publicKey.base64Key() {
output.append("PublicKey = \(publicKey)\n")
}
if let preSharedKey = peer.preSharedKey?.base64Key {
if let preSharedKey = peer.preSharedKey?.base64Key() {
output.append("PresharedKey = \(preSharedKey)\n")
}
if !peer.allowedIPs.isEmpty {