]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Fix writing of preshared key to config format
authorRoopesh Chander <roop@roopc.net>
Sat, 9 Feb 2019 09:27:24 +0000 (14:57 +0530)
committerRoopesh Chander <roop@roopc.net>
Sat, 9 Feb 2019 09:27:24 +0000 (14:57 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/Shared/Model/TunnelConfiguration+WgQuickConfig.swift

index 859c1b53f5a8fd379991a9eca0b736b97517fd6d..a6afc05c7ebb783cdd97cb505054396b6f3b8108 100644 (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 {