]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Config file parser: Fix typo
authorRoopesh Chander <roop@roopc.net>
Sat, 17 Nov 2018 17:22:37 +0000 (22:52 +0530)
committerRoopesh Chander <roop@roopc.net>
Sat, 17 Nov 2018 17:22:37 +0000 (22:52 +0530)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/ConfigFile/WgQuickConfigFileParser.swift

index 0ded15eebe9afcf19620998016f8a1a820180ea0..7a5c202e4c13642ac65361bc1515b9537b5af4b2 100644 (file)
@@ -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
             }