diff --git a/Limelight/Network/DiscoveryManager.h b/Limelight/Network/DiscoveryManager.h index 241f42a6..ba26549f 100644 --- a/Limelight/Network/DiscoveryManager.h +++ b/Limelight/Network/DiscoveryManager.h @@ -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 diff --git a/Limelight/Network/DiscoveryManager.m b/Limelight/Network/DiscoveryManager.m index 024cdedc..61ab62a2 100644 --- a/Limelight/Network/DiscoveryManager.m +++ b/Limelight/Network/DiscoveryManager.m @@ -21,8 +21,6 @@ #include #include -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]; diff --git a/Limelight/ViewControllers/MainFrameViewController.m b/Limelight/ViewControllers/MainFrameViewController.m index 99407c75..11626b8b 100644 --- a/Limelight/ViewControllers/MainFrameViewController.m +++ b/Limelight/ViewControllers/MainFrameViewController.m @@ -579,16 +579,7 @@ static NSMutableSet* hostList; [alertController addAction:[UIAlertAction actionWithTitle:[LocalizationHelper localizedStringForKey:@"Cancel"] style:UIAlertActionStyleCancel handler:nil]]; [alertController addAction:[UIAlertAction actionWithTitle:[LocalizationHelper localizedStringForKey:@"Ok"] style:UIAlertActionStyleDefault handler:^(UIAlertAction* action){ NSString* hostAddress = [((UITextField*)[[alertController textFields] objectAtIndex:0]).text trim]; - - //handles public IP - NSString *publicIpBackdoor = @"-666"; - if ([hostAddress rangeOfString:publicIpBackdoor].location != NSNotFound) { - hostAddress = [hostAddress stringByReplacingOccurrencesOfString:publicIpBackdoor withString:@""]; - [DiscoveryManager setBackdoorHostAddress:hostAddress]; - } else { - [DiscoveryManager setBackdoorHostAddress:nil]; - } - + [self showLoadingFrame:^{ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{ [self->_discMan discoverHost:hostAddress withCallback:^(TemporaryHost* host, NSString* error){ diff --git a/Limelight/ViewControllers/SWRevealViewController.m b/Limelight/ViewControllers/SWRevealViewController.m index 0b35f977..39757a60 100755 --- a/Limelight/ViewControllers/SWRevealViewController.m +++ b/Limelight/ViewControllers/SWRevealViewController.m @@ -733,7 +733,7 @@ const int FrontViewPositionNone = 0xff; // tested on iOS17. this method does not call back on iOS14, runtime orientation limitation not working for iOS14. Probably depends on iOS16 or higher. - (UIInterfaceOrientationMask)supportedInterfaceOrientations { // Return the supported interface orientations based on the current state - NSLog(@"supportedInterfaceOrientations called back 666"); + // NSLog(@"supportedInterfaceOrientations called back 666"); //lock the orientation accordingly after streaming is started DataManager* dataMan = [[DataManager alloc] init]; Settings *currentSettings = [dataMan retrieveSettings];