try to fix app crash issue triggered by manually adding host

This commit is contained in:
TrueZhuangjia
2024-11-20 21:36:58 +08:00
parent 2be2ffbcb6
commit 3894d92f1b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1296,7 +1296,7 @@
}
}
},
"Moonlight-iOS/tvOS only supports adding PCs on your local network on %s." : {
"Moonlight-iOS/tvOS only supports adding PCs on your local network" : {
"extractionState" : "manual",
"localizations" : {
"zh-Hans" : {
+1 -1
View File
@@ -132,7 +132,7 @@
- (void) discoverHost:(NSString *)hostAddress withCallback:(void (^)(TemporaryHost *, NSString*))callback {
BOOL prohibitedAddress = [DiscoveryManager isProhibitedAddress:hostAddress];
NSString* prohibitedAddressMessage = [LocalizationHelper localizedStringForKey: @"Moonlight-iOS/tvOS only supports adding PCs on your local network on %s."];
NSString* prohibitedAddressMessage = [LocalizationHelper localizedStringForKey: @"Moonlight-iOS/tvOS only supports adding PCs on your local network"]; // this is actually deprecated since i cancel the IP limitation
ServerInfoResponse* serverInfoResponse = [self getServerInfoResponseForAddress:hostAddress];
TemporaryHost* host = nil;