From 3894d92f1be93d73151a4dfb851bd20238a0423a Mon Sep 17 00:00:00 2001 From: TrueZhuangjia Date: Wed, 20 Nov 2024 21:36:58 +0800 Subject: [PATCH] try to fix app crash issue triggered by manually adding host --- Limelight/Localization/Localizable.xcstrings | 2 +- Limelight/Network/DiscoveryManager.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Limelight/Localization/Localizable.xcstrings b/Limelight/Localization/Localizable.xcstrings index af4c569d..72f3130f 100644 --- a/Limelight/Localization/Localizable.xcstrings +++ b/Limelight/Localization/Localizable.xcstrings @@ -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" : { diff --git a/Limelight/Network/DiscoveryManager.m b/Limelight/Network/DiscoveryManager.m index 61ab62a2..ea1c6062 100644 --- a/Limelight/Network/DiscoveryManager.m +++ b/Limelight/Network/DiscoveryManager.m @@ -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;