mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-02-17 21:32:02 +00:00
Fix writing of preshared key to config format
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
bac4851e95
commit
91b1734b7a
@ -148,7 +148,7 @@ extension TunnelConfiguration {
|
|||||||
if let publicKey = peer.publicKey.base64Key() {
|
if let publicKey = peer.publicKey.base64Key() {
|
||||||
output.append("PublicKey = \(publicKey)\n")
|
output.append("PublicKey = \(publicKey)\n")
|
||||||
}
|
}
|
||||||
if let preSharedKey = peer.preSharedKey?.base64Key {
|
if let preSharedKey = peer.preSharedKey?.base64Key() {
|
||||||
output.append("PresharedKey = \(preSharedKey)\n")
|
output.append("PresharedKey = \(preSharedKey)\n")
|
||||||
}
|
}
|
||||||
if !peer.allowedIPs.isEmpty {
|
if !peer.allowedIPs.isEmpty {
|
||||||
|
Loading…
Reference in New Issue
Block a user