no message

This commit is contained in:
Peter
2017-04-20 18:58:02 +03:00
parent dff048aec3
commit 50979d69c3
3 changed files with 7 additions and 3 deletions

View File

@@ -63,7 +63,9 @@ public class Serialization: NSObject, MTSerialization {
switch option {
case let .dcOption(flags, id, ipAddress, port) where id == datacenterId:
let preferForMedia = (flags & (1 << 1)) != 0
addressList.append(MTDatacenterAddress(ip: ipAddress, port: UInt16(port), preferForMedia: preferForMedia, restrictToTcp: false))
let restrictToTcp = (flags & (1 << 2)) != 0
let isCdn = (flags & (1 << 3)) != 0
addressList.append(MTDatacenterAddress(ip: ipAddress, port: UInt16(port), preferForMedia: preferForMedia, restrictToTcp: restrictToTcp, cdn: isCdn))
break
default:
break