Merge pull request #177 from pahnev/master

Set IV_PLAT based on current OS
This commit is contained in:
Davide De Rosa 2020-06-29 13:35:11 +02:00 committed by GitHub
commit e0781926e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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",