diff options
author | Roopesh Chander <roop@roopc.net> | 2019-02-25 16:16:58 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2019-02-25 16:21:29 +0530 |
commit | b2a2110d8c5925da4032a5d48d13143b65497a4e (patch) | |
tree | df242b29986fe292022a99359069b9c4dcde78d8 /WireGuard/WireGuard | |
parent | iOS: Hack to restart active tunnel after adding a new tunnel (diff) | |
download | wireguard-apple-b2a2110d8c5925da4032a5d48d13143b65497a4e.tar.xz wireguard-apple-b2a2110d8c5925da4032a5d48d13143b65497a4e.zip |
Importing: Use case-insensitive comparison for zip extension
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r-- | WireGuard/WireGuard/UI/TunnelImporter.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WireGuard/WireGuard/UI/TunnelImporter.swift b/WireGuard/WireGuard/UI/TunnelImporter.swift index 06148d3..7625761 100644 --- a/WireGuard/WireGuard/UI/TunnelImporter.swift +++ b/WireGuard/WireGuard/UI/TunnelImporter.swift @@ -5,7 +5,7 @@ import Foundation class TunnelImporter { static func importFromFile(url: URL, into tunnelsManager: TunnelsManager, sourceVC: AnyObject?, errorPresenterType: ErrorPresenterProtocol.Type, completionHandler: (() -> Void)? = nil) { - if url.pathExtension == "zip" { + if url.pathExtension.lowercased() == "zip" { ZipImporter.importConfigFiles(from: url) { result in if let error = result.error { errorPresenterType.showErrorAlert(error: error, from: sourceVC) |