Browse Source

Merge pull request #720 from adotkhan/device-region

fix: replace use of capitalizedString with uppercaseString for correc…
Rod Hynes 1 year ago
parent
commit
b227fce40c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.m

+ 1 - 1
MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.m

@@ -1579,7 +1579,7 @@ typedef NS_ERROR_ENUM(PsiphonTunnelErrorDomain, PsiphonTunnelErrorCode) {
         // CTCarrier deprecated with no replacement as of iOS 16 so there is no alternative API to
         // get the carrier country code; [CTCarrier isoCountryCode] returns @"--" on iOS >=16.
         
-        return [[[CNContactsUserDefaults sharedDefaults] countryCode] capitalizedString];
+        return [[[CNContactsUserDefaults sharedDefaults] countryCode] uppercaseString];
         
     } else {
         CTTelephonyNetworkInfo *networkInfo = nil;