Skip to content

Commit d7ac927

Browse files
committed
Crash fix, UI glitch fix, and rolling back OVPN
1 parent e019131 commit d7ac927

6 files changed

Lines changed: 22 additions & 12 deletions

File tree

Confirmed Blocker/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<key>CFBundlePackageType</key>
1818
<string>XPC!</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.3.2</string>
20+
<string>1.3.3</string>
2121
<key>CFBundleVersion</key>
22-
<string>14</string>
22+
<string>2</string>
2323
<key>NSExtension</key>
2424
<dict>
2525
<key>NSExtensionPointIdentifier</key>

Confirmed Tunnels/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<key>CFBundlePackageType</key>
1818
<string>XPC!</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.3.2</string>
20+
<string>1.3.3</string>
2121
<key>CFBundleVersion</key>
22-
<string>14</string>
22+
<string>2</string>
2323
<key>NSExtension</key>
2424
<dict>
2525
<key>NSExtensionPointIdentifier</key>

ConfirmediOS/IPSecV3.swift

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ class IPSecV3: NSObject, ConfirmedVPNProtocol {
2121
let endpoint = endpointForRegion(region: savedRegion)
2222
let localId = Global.keychain[Global.kConfirmedID]
2323
let p12base64 = Global.keychain[Global.kConfirmedP12Key]
24+
25+
if localId == nil || p12base64 == nil {
26+
completion(NSError.init(domain: "Confirmed VPN", code: 1, userInfo: nil))
27+
return
28+
}
29+
2430
let p12Data = Data(base64Encoded: p12base64!)
2531

2632
ipsecManager?.loadFromPreferences(completionHandler: {(_ error: Error?) -> Void in
@@ -221,9 +227,14 @@ class IPSecV3: NSObject, ConfirmedVPNProtocol {
221227
}
222228

223229
func getStatus(completion: @escaping (_ status: NEVPNStatus) -> Void) -> Void {
224-
self.ipsecManager?.loadFromPreferences(completionHandler: {(_ error: Error?) -> Void in
225-
completion(self.ipsecManager?.connection.status ?? .invalid)
226-
})
230+
if self.ipsecManager == nil {
231+
completion(.invalid)
232+
}
233+
else {
234+
self.ipsecManager?.loadFromPreferences(completionHandler: {(_ error: Error?) -> Void in
235+
completion(self.ipsecManager?.connection.status ?? .invalid)
236+
})
237+
}
227238
}
228239

229240
var ipsecManager: NEVPNManager?

ConfirmediOS/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.3.2</string>
20+
<string>1.3.3</string>
2121
<key>CFBundleURLTypes</key>
2222
<array>
2323
<dict>
@@ -34,7 +34,7 @@
3434
</dict>
3535
</array>
3636
<key>CFBundleVersion</key>
37-
<string>14</string>
37+
<string>2</string>
3838
<key>LSRequiresIPhoneOS</key>
3939
<true/>
4040
<key>NSLocationAlwaysUsageDescription</key>

ConfirmediOS/VPNViewController.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ class VPNViewController: ConfirmedBaseViewController, BWWalkthroughViewControlle
184184
self.vpnPowerButton?.isEnabled = true
185185
}
186186

187-
TunnelsSubscription.refreshAndUploadReceipt()
188187
}
189188

190189
func updateActiveCountry() {

Today/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
<key>CFBundlePackageType</key>
1818
<string>XPC!</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>1.3.2</string>
20+
<string>1.3.3</string>
2121
<key>CFBundleVersion</key>
22-
<string>14</string>
22+
<string>2</string>
2323
<key>NSExtension</key>
2424
<dict>
2525
<key>NSExtensionMainStoryboard</key>

0 commit comments

Comments
 (0)