Fix Reactotron socket
This commit is contained in:
parent
fe5e4917cc
commit
a3a59e1a85
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue