]> git.ipfire.org Git - thirdparty/wireguard-apple.git/commitdiff
Importing: Also support importing public.text files in the file picker
authorRoopesh Chander <roop@roopc.net>
Wed, 7 Nov 2018 13:42:36 +0000 (19:12 +0530)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 7 Nov 2018 16:43:30 +0000 (17:43 +0100)
Signed-off-by: Roopesh Chander <roop@roopc.net>
WireGuard/WireGuard/UI/iOS/TunnelsListTableViewController.swift

index edecc67a4abbf5e43fe75766806e0368187d65d1..b78c27951bb44d662f0ed4f477b7daf5f3fda561 100644 (file)
@@ -154,7 +154,7 @@ class TunnelsListTableViewController: UIViewController {
     }
 
     func presentViewControllerForFileImport() {
-        let documentTypes = ["com.wireguard.config.quick", String(kUTTypeZipArchive)]
+        let documentTypes = ["com.wireguard.config.quick", String(kUTTypeText), String(kUTTypeZipArchive)]
         let filePicker = UIDocumentPickerViewController(documentTypes: documentTypes, in: .import)
         filePicker.delegate = self
         self.present(filePicker, animated: true)