mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-01-29 20:12:08 +00:00
Config file parser: Fix typo
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
6bb25782c1
commit
ef2012330f
@ -66,7 +66,7 @@ class WgQuickConfigFileParser {
|
||||
guard let publicKey = Data(base64Encoded: publicKeyString), publicKey.count == 32 else { return nil }
|
||||
var peer = PeerConfiguration(publicKey: publicKey)
|
||||
// wg fields
|
||||
if let preSharedKeyString = attributes["PreSharedKey"] {
|
||||
if let preSharedKeyString = attributes["PresharedKey"] {
|
||||
guard let preSharedKey = Data(base64Encoded: preSharedKeyString), preSharedKey.count == 32 else { return nil }
|
||||
peer.preSharedKey = preSharedKey
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user