- (void)checkHTTPEnable {
NSDictionary * ref = (__bridge NSDictionary *)CFNetworkCopySystemProxySettings();
BOOL enable = [[ref objectForKey:@"HTTPEnable"] boolValue];
if (enable) {
NSLog(@"开启了代理");
}else {
NSLog(@"没开代理");
}
}
- (void)checkHTTPEnable {
NSDictionary * ref = (__bridge NSDictionary *)CFNetworkCopySystemProxySettings();
BOOL enable = [[ref objectForKey:@"HTTPEnable"] boolValue];
if (enable) {
NSLog(@"开启了代理");
}else {
NSLog(@"没开代理");
}
}
本文标题:ios 防抓包
本文链接:https://www.haomeiwen.com/subject/ppgzictx.html
网友评论