aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-02-09 14:57:24 +0530
committerRoopesh Chander <roop@roopc.net>2019-02-09 14:57:24 +0530
commit91b1734b7aa98c61b4c69e2d8e4ee7c73ad4653c (patch)
tree4c106126d3b4c5f7a2a621efb2271dbdabf8c9bc
parentProject: don't embed swift binaries into appex (diff)
downloadwireguard-apple-91b1734b7aa98c61b4c69e2d8e4ee7c73ad4653c.tar.xz
wireguard-apple-91b1734b7aa98c61b4c69e2d8e4ee7c73ad4653c.zip
Fix writing of preshared key to config format
Signed-off-by: Roopesh Chander <roop@roopc.net>
-rw-r--r--WireGuard/Shared/Model/TunnelConfiguration+WgQuickConfig.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/Shared/Model/TunnelConfiguration+WgQuickConfig.swift b/WireGuard/Shared/Model/TunnelConfiguration+WgQuickConfig.swift
index 859c1b53..a6afc05c 100644
--- a/WireGuard/Shared/Model/TunnelConfiguration+WgQuickConfig.swift
+++ b/WireGuard/Shared/Model/TunnelConfiguration+WgQuickConfig.swift
@@ -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 {