iOS/macOS: Integrate WireGuardKit

Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
Andrej Mihajlov
2020-11-09 10:52:06 +01:00
parent 8c057bf928
commit 95b833c754
25 changed files with 122 additions and 163 deletions
+2 -1
View File
@@ -3,6 +3,7 @@
import Foundation
import os.log
import WireGuardKit
public class Logger {
enum LoggerError: Error {
@@ -49,7 +50,7 @@ public class Logger {
if let appBuild = Bundle.main.infoDictionary?["CFBundleVersion"] as? String {
appVersion += " (\(appBuild))"
}
let goBackendVersion = WIREGUARD_GO_VERSION
let goBackendVersion = getWireGuardVersion()
Logger.global?.log(message: "App version: \(appVersion); Go backend version: \(goBackendVersion)")
}
}