Update TunnelKit to handle new error codes

This commit is contained in:
Davide De Rosa 2018-10-23 23:17:16 +02:00
parent 60a6dfda79
commit ebbba3a713
5 changed files with 14 additions and 8 deletions

View File

@ -94,12 +94,15 @@ extension SettingTableViewCell {
case .dnsFailure: case .dnsFailure:
disconnectionReason = L10n.Vpn.Errors.dns disconnectionReason = L10n.Vpn.Errors.dns
case .tlsFailed: case .tlsInitialization, .tlsServerVerification, .tlsHandshake:
disconnectionReason = L10n.Vpn.Errors.tls disconnectionReason = L10n.Vpn.Errors.tls
case .authenticationFailed: case .authentication:
disconnectionReason = L10n.Vpn.Errors.auth disconnectionReason = L10n.Vpn.Errors.auth
case .encryptionInitialization, .encryptionData:
disconnectionReason = L10n.Vpn.Errors.encryption
case .networkChanged: case .networkChanged:
disconnectionReason = L10n.Vpn.Errors.network disconnectionReason = L10n.Vpn.Errors.network

View File

@ -165,9 +165,10 @@
"vpn.disabled" = "Disabled"; "vpn.disabled" = "Disabled";
"vpn.errors.timeout" = "Timeout"; "vpn.errors.timeout" = "Timeout";
"vpn.errors.dns" = "DNS failed";
"vpn.errors.auth" = "Auth failed"; "vpn.errors.auth" = "Auth failed";
"vpn.errors.tls" = "TLS failed"; "vpn.errors.tls" = "TLS failed";
"vpn.errors.dns" = "DNS failed"; "vpn.errors.encryption" = "Encryption failed";
"vpn.errors.network" = "Network changed"; "vpn.errors.network" = "Network changed";
"issue_reporter.title" = "Report issue"; "issue_reporter.title" = "Report issue";

View File

@ -720,6 +720,8 @@ internal enum L10n {
internal static let auth = L10n.tr("Localizable", "vpn.errors.auth") internal static let auth = L10n.tr("Localizable", "vpn.errors.auth")
/// DNS failed /// DNS failed
internal static let dns = L10n.tr("Localizable", "vpn.errors.dns") internal static let dns = L10n.tr("Localizable", "vpn.errors.dns")
/// Encryption failed
internal static let encryption = L10n.tr("Localizable", "vpn.errors.encryption")
/// Network changed /// Network changed
internal static let network = L10n.tr("Localizable", "vpn.errors.network") internal static let network = L10n.tr("Localizable", "vpn.errors.network")
/// Timeout /// Timeout

View File

@ -3,7 +3,7 @@ use_frameworks!
def shared_pods def shared_pods
#pod 'TunnelKit', '~> 1.1.2' #pod 'TunnelKit', '~> 1.1.2'
pod 'TunnelKit', :git => 'https://github.com/keeshux/tunnelkit', :commit => '9829475' pod 'TunnelKit', :git => 'https://github.com/keeshux/tunnelkit', :commit => 'f7bb3a3'
#pod 'TunnelKit', :path => '../tunnelkit' #pod 'TunnelKit', :path => '../tunnelkit'
end end

View File

@ -14,7 +14,7 @@ PODS:
DEPENDENCIES: DEPENDENCIES:
- MBProgressHUD - MBProgressHUD
- TunnelKit (from `https://github.com/keeshux/tunnelkit`, commit `9829475`) - TunnelKit (from `https://github.com/keeshux/tunnelkit`, commit `f7bb3a3`)
SPEC REPOS: SPEC REPOS:
https://github.com/cocoapods/specs.git: https://github.com/cocoapods/specs.git:
@ -24,12 +24,12 @@ SPEC REPOS:
EXTERNAL SOURCES: EXTERNAL SOURCES:
TunnelKit: TunnelKit:
:commit: '9829475' :commit: f7bb3a3
:git: https://github.com/keeshux/tunnelkit :git: https://github.com/keeshux/tunnelkit
CHECKOUT OPTIONS: CHECKOUT OPTIONS:
TunnelKit: TunnelKit:
:commit: '9829475' :commit: f7bb3a3
:git: https://github.com/keeshux/tunnelkit :git: https://github.com/keeshux/tunnelkit
SPEC CHECKSUMS: SPEC CHECKSUMS:
@ -38,6 +38,6 @@ SPEC CHECKSUMS:
SwiftyBeaver: ccfcdf85a04d429f1633f668650b0ce8020bda3a SwiftyBeaver: ccfcdf85a04d429f1633f668650b0ce8020bda3a
TunnelKit: 6c790dfbcb0042d6a5dfe2fda5b0eb5b895afaf1 TunnelKit: 6c790dfbcb0042d6a5dfe2fda5b0eb5b895afaf1
PODFILE CHECKSUM: 9054389b89f51fe7517cfecebde6520280df4799 PODFILE CHECKSUM: f39e32152761feedf93ae76c3d769b002a2084af
COCOAPODS: 1.6.0.beta.2 COCOAPODS: 1.6.0.beta.2