Skip to content

Commit

Permalink
[Core] Don't use voip for iOS 16+
Browse files Browse the repository at this point in the history
  • Loading branch information
dsanghan committed Sep 14, 2022
1 parent 2864403 commit 4b86083
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/data-types/mailstream_cfstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,12 +490,14 @@ mailstream_low * mailstream_low_cfstream_open_voip_timeout(const char * hostname
CFStreamCreatePairWithSocketToHost(NULL, hostString, port, &readStream, &writeStream);
CFRelease(hostString);

#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_16
#if TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR
if (voip_enabled) {
CFReadStreamSetProperty(readStream, kCFStreamNetworkServiceType, kCFStreamNetworkServiceTypeVoIP);
CFWriteStreamSetProperty(writeStream, kCFStreamNetworkServiceType, kCFStreamNetworkServiceTypeVoIP);
}
#endif
#endif

#if !TARGET_OS_IPHONE && !TARGET_IPHONE_SIMULATOR
CFDictionaryRef proxySettings = CFNetworkCopySystemProxySettings();
Expand Down

0 comments on commit 4b86083

Please sign in to comment.