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:
disconnectionReason = L10n.Vpn.Errors.dns
case .tlsFailed:
case .tlsInitialization, .tlsServerVerification, .tlsHandshake:
disconnectionReason = L10n.Vpn.Errors.tls
case .authenticationFailed:
case .authentication:
disconnectionReason = L10n.Vpn.Errors.auth
case .encryptionInitialization, .encryptionData:
disconnectionReason = L10n.Vpn.Errors.encryption
case .networkChanged:
disconnectionReason = L10n.Vpn.Errors.network

View File

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

View File

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

View File

@ -3,7 +3,7 @@ use_frameworks!
def shared_pods
#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'
end

View File

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