Set IV_PLAT based on current OS

This commit is contained in:
Kirill Pahnev 2020-06-29 13:00:17 +03:00
parent a232af1100
commit d3caa5c4ad
1 changed files with 7 additions and 1 deletions

View File

@ -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",