From d3caa5c4ad5c93efe048f2ea4e2fbb5a3fbcce4d Mon Sep 17 00:00:00 2001 From: Kirill Pahnev Date: Mon, 29 Jun 2020 13:00:17 +0300 Subject: [PATCH] Set IV_PLAT based on current OS --- .../Protocols/OpenVPN/CoreConfiguration+OpenVPN.swift | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/TunnelKit/Sources/Protocols/OpenVPN/CoreConfiguration+OpenVPN.swift b/TunnelKit/Sources/Protocols/OpenVPN/CoreConfiguration+OpenVPN.swift index b122cbf..2c30823 100644 --- a/TunnelKit/Sources/Protocols/OpenVPN/CoreConfiguration+OpenVPN.swift +++ b/TunnelKit/Sources/Protocols/OpenVPN/CoreConfiguration+OpenVPN.swift @@ -64,9 +64,15 @@ extension CoreConfiguration { // MARK: Authentication static let peerInfo: String = { + let platform: String + #if os(iOS) + platform = "ios" + #else + platform = "mac" + #endif var info = [ "IV_VER=2.4", - "IV_PLAT=mac", + "IV_PLAT=\(platform)", "IV_UI_VER=\(identifier) \(version)", "IV_PROTO=2", "IV_NCP=2",