mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-03-04 12:42:02 +00:00
Config file parser: Fix typo
This commit is contained in:
parent
b5689edf71
commit
ccd8e784f3
@ -66,7 +66,7 @@ class WgQuickConfigFileParser {
|
|||||||
guard let publicKey = Data(base64Encoded: publicKeyString), publicKey.count == 32 else { return nil }
|
guard let publicKey = Data(base64Encoded: publicKeyString), publicKey.count == 32 else { return nil }
|
||||||
var peer = PeerConfiguration(publicKey: publicKey)
|
var peer = PeerConfiguration(publicKey: publicKey)
|
||||||
// wg fields
|
// wg fields
|
||||||
if let preSharedKeyString = attributes["PreSharedKey"] {
|
if let preSharedKeyString = attributes["PresharedKey"] {
|
||||||
guard let preSharedKey = Data(base64Encoded: preSharedKeyString), preSharedKey.count == 32 else { return nil }
|
guard let preSharedKey = Data(base64Encoded: preSharedKeyString), preSharedKey.count == 32 else { return nil }
|
||||||
peer.preSharedKey = preSharedKey
|
peer.preSharedKey = preSharedKey
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user