diff options
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) |