remove invalid IP rule
This commit is contained in:
1 parent
dcdfbc7394
commit
d2a1add105
4 files changed
+2
-23
No files matched your search
@@ -27,6 +27,5 @@
|
||||
- (void) pauseDiscoveryForHost:(TemporaryHost *)host;
|
||||
- (void) resumeDiscoveryForHost:(TemporaryHost *)host;
|
||||
- (void) discoverHost:(NSString*)hostAddress withCallback:(void (^)(TemporaryHost*, NSString*))callback;
|
||||
+ (void) setBackdoorHostAddress: (NSString*)address;
|
||||
|
||||
@end
|
||||
@@ -21,8 +21,6 @@
|
||||
#include <sys/socket.h>
|
||||
#include <netdb.h>
|
||||
|
||||
static NSString* backdoorHostAddress;
|
||||
|
||||
@implementation DiscoveryManager {
|
||||
NSMutableArray* _hostQueue;
|
||||
NSMutableSet* _pausedHosts;
|
||||
@@ -117,11 +115,6 @@ static NSString* backdoorHostAddress;
|
||||
//BOOL ret = NO;
|
||||
freeaddrinfo(result);
|
||||
|
||||
NSLog(@"backDoorHostAddress: %@", backdoorHostAddress);
|
||||
if(ret){
|
||||
if([address isEqualToString:backdoorHostAddress]) ret = NO;
|
||||
}
|
||||
backdoorHostAddress = nil;
|
||||
NSLog(@"IP Check, is prohibited: %d", ret);
|
||||
|
||||
return NO;
|
||||
@@ -130,10 +123,6 @@ static NSString* backdoorHostAddress;
|
||||
//#endif
|
||||
}
|
||||
|
||||
+ (void)setBackdoorHostAddress: (NSString* )address{
|
||||
backdoorHostAddress = address;
|
||||
}
|
||||
|
||||
- (ServerInfoResponse*) getServerInfoResponseForAddress:(NSString*)address {
|
||||
HttpManager* hMan = [[HttpManager alloc] initWithAddress:address httpsPort:0 serverCert:nil];
|
||||
ServerInfoResponse* serverInfoResponse = [[ServerInfoResponse alloc] init];
|
||||
|
||||
Reference in new issue
Block a user