Fix Reactotron socket

This commit is contained in:
Diego Mello 2023-07-12 10:51:36 -03:00
parent fe5e4917cc
commit a3a59e1a85
1 changed files with 9 additions and 8 deletions

View File

@ -186,16 +186,17 @@
clientSSL = [mmkv getStringForKey:_urlRequest.URL.host]; clientSSL = [mmkv getStringForKey:_urlRequest.URL.host];
if (clientSSL) { if (clientSSL) {
NSData *data = [clientSSL dataUsingEncoding:NSUTF8StringEncoding]; NSData *data = [clientSSL dataUsingEncoding:NSUTF8StringEncoding];
id dict = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil]; id dict = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];
NSString *path = [dict objectForKey:@"path"]; NSString *path = [dict objectForKey:@"path"];
NSString *password = [dict objectForKey:@"password"]; NSString *password = [dict objectForKey:@"password"];
[self setClientSSL:path password:password options:SSLOptions]; [self setClientSSL:path password:password options:SSLOptions];
if (SSLOptions) {
id _outputStream = [self valueForKey:@"_outputStream"];
[_outputStream setProperty:SSLOptions forKey:(__bridge id)kCFStreamPropertySSLSettings];
}
} }
} }
id _outputStream = [self valueForKey:@"_outputStream"];
[_outputStream setProperty:SSLOptions forKey:(__bridge id)kCFStreamPropertySSLSettings];
} }
@end @end