diff options
author | Roopesh Chander <roop@roopc.net> | 2018-11-17 22:52:37 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-11-17 22:52:37 +0530 |
commit | ef2012330f3f0e9e6579274a51e7b8c283d415b5 (patch) | |
tree | 769f971cda77695ad36af8fb59787070ee2c8be5 /WireGuard/WireGuard | |
parent | Exporting: Export to zip in a background thread (diff) | |
download | wireguard-apple-ef2012330f3f0e9e6579274a51e7b8c283d415b5.tar.xz wireguard-apple-ef2012330f3f0e9e6579274a51e7b8c283d415b5.zip |
Config file parser: Fix typo
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard/WireGuard')
-rw-r--r-- | WireGuard/WireGuard/ConfigFile/WgQuickConfigFileParser.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/ConfigFile/WgQuickConfigFileParser.swift b/WireGuard/WireGuard/ConfigFile/WgQuickConfigFileParser.swift index 0ded15e..7a5c202 100644 --- a/WireGuard/WireGuard/ConfigFile/WgQuickConfigFileParser.swift +++ b/WireGuard/WireGuard/ConfigFile/WgQuickConfigFileParser.swift @@ -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 } |