WireGuardKit: Change getWireGuardVersion() -> wireGuardVersion

Signed-off-by: Andrej Mihajlov <and@mullvad.net>
This commit is contained in:
Andrej Mihajlov committed 2020-12-03 13:22:52 +01:00
1 parent ef7de2500f
commit a6858bd126
4 files changed
+4 -5

No files matched your search

@@ -55,7 +55,7 @@ public class WireGuardAdapter {
return self.packetTunnelProvider?.packetFlow.value(forKeyPath: "socket.fileDescriptor") as? Int32
}
/// Returns a Wireguard version.
/// Returns a WireGuard version.
class var version: String {
return String(cString: wgVersion())
}
@@ -3,6 +3,6 @@
import Foundation
public func getWireGuardVersion() -> String {
public var wireGuardVersion: String {
return WireGuardAdapter.version
}