Commit Graph

844 Commits

Author SHA1 Message Date
Eric Kuck 7ce5cb9d58 Added missing param in MockTunnels 2018-12-20 13:51:44 -06:00
Eric Kuck 9c7f27f19f Enabled more swiftlint rules 2018-12-20 11:22:37 -06:00
Eric Kuck cba41de73a Added a String->[String] helper 2018-12-20 10:46:26 -06:00
Roopesh Chander f141cf83a6 TunnelErrors: Remove unused error 2018-12-20 19:44:57 +05:30
Roopesh Chander d82aedebbd Tunnel edit: init() need not take a tunnelConfiguration argument 2018-12-19 18:35:53 +05:30
Roopesh Chander d36b764e20 NE: Log whether tunnel was activated from the app or not 2018-12-19 18:35:53 +05:30
Roopesh Chander 8f46713b0d Remove non-helpful comments 2018-12-19 18:35:53 +05:30
Roopesh Chander 61c3928459 Tunnel edit: Fix comment 2018-12-19 18:35:53 +05:30
Roopesh Chander 4c1c1f013c TunnelsManager: If only Activate On Demand has changed, don't restart tunnel 2018-12-19 18:35:53 +05:30
Roopesh Chander b8c331c72d NE: Handle bad domain names and Activate On Demand
This combination causes iOS to keep trying to bring up the tunnel,
leading to a lot of displayMessage() alerts.

In this fix, if we get a DNS resolution error in an Activate On Demand
enabled tunnel, we silently retry 9 times (with a 4-second delay before
each retry) and then show the displayMessage() alert.
2018-12-19 15:38:00 +05:30
Roopesh Chander 82ca9f7c5a NE: No need for two startTunnel() methods 2018-12-19 13:10:42 +05:30
Roopesh Chander fe69fe57e4 TunnelsManager: Handle waiting on a stale tunnel
If we have a stale tunnel on which we don't get status updates we rely
on a timer to update the status (see commit 34a7e5b).  Previously, if
the user tries to activate another tunnel, that resulted in both tunnels
waiting indefinitely. This commit fixes that.
2018-12-19 12:48:10 +05:30
Roopesh Chander efc593f7da Remove buttons and text from LaunchScreen.storyboard
With state restoration, we're not guaranteed that the
list view will get shown immediately after the launch screen.
So, generalize the launch screen as much as possible.
2018-12-18 23:00:27 +05:30
Roopesh Chander 332e684ad0 s/Observervation/Observation/g; 2018-12-18 23:00:27 +05:30
Roopesh Chander bc253b1aa8 Tunnel detail: Update restorationIdentifier when tunnel name changes 2018-12-18 19:27:31 +05:30
Roopesh Chander b1bba11785 TunnelsManager: Add periods to end the system error messages
Because they can be part of a multi-sentence message when displayed
in the alert.
2018-12-18 15:47:20 +05:30
Roopesh Chander 92903e5b63 Error handling: Add info on the underlying system error to error alerts 2018-12-17 19:04:17 +05:30
Jason A. Donenfeld 321358271d Version bump
This is our first release to the real app store.
2018-12-17 14:08:17 +01:00
Eric Kuck d1825d6b6c Got TunnelsManager back under the max file length by splitting out NEVPNStatus+CustomStringConvertible 2018-12-16 23:51:25 -06:00
Eric Kuck 92781a6eb9 Potential fix for insertRowAtIndexPath crash 2018-12-16 21:11:33 -06:00
Jason A. Donenfeld 395486b950 Improve mock tunnels generation 2018-12-16 01:51:14 +01:00
Roopesh Chander 6d348ab0e6 Provide mock tunnels for the Simulator
To help in generation of screenshots for the App Store
2018-12-16 01:15:10 +05:30
Jason A. Donenfeld 6f335f898a Nuke duplicate file 2018-12-15 06:21:49 +01:00
Jason A. Donenfeld 8547dabce1 Version bump 2018-12-15 05:08:31 +01:00
Eric Kuck 0ea2e0d11b Fixed editable KeyValueCells being copyable
Fixed DNS servers not saving
2018-12-14 21:48:48 -06:00
Jason A. Donenfeld 424c6d1173 Fix confusing indentation 2018-12-15 04:42:46 +01:00
Eric Kuck 66fcdfd13c KeyValueCells now share code 2018-12-14 20:02:37 -06:00
Eric Kuck 4ae0c4bb17 Reorganized project structure 2018-12-14 17:27:11 -06:00
Eric Kuck b06a43e2a2 Most similar views now shared between ViewControllers 2018-12-14 17:15:22 -06:00
Jason A. Donenfeld 9a7571051f Prettier log time format 2018-12-15 00:08:54 +01:00
Jason A. Donenfeld 33d88529c6 Simplify logging tags
This was roop's initial idea, and it turns out to be the better one, now
that we can pass cstrings more easily.
2018-12-14 22:53:42 +01:00
Roopesh Chander 34a7e5b558 Fix tunnel remaining in 'Activating' state
It uses to remain in 'Activating' state when we don't get a status
update notification, for example, when turning on the tunnel repeatedly
without Internet connectivity.
2018-12-14 17:33:56 +05:30
Roopesh Chander ce112a3f44 Fix status switch weird state after an error occurs 2018-12-14 16:50:36 +05:30
Jason A. Donenfeld 19f16c3291 Deduplicate functions 2018-12-14 00:01:50 +01:00
Jason A. Donenfeld 628ba73aa3 Simplify filemanager extension 2018-12-13 23:25:18 +01:00
Jason A. Donenfeld b4348a33d2 Can't -> cannot 2018-12-13 23:17:05 +01:00
Roopesh Chander e6c1e46b1d NE: Communicate last error to app through a shared file 2018-12-14 02:24:53 +05:30
Roopesh Chander 206de837d1 TunnelsManager: startActivation() need not take a tunnelConfiguration 2018-12-14 00:40:18 +05:30
Jason A. Donenfeld b40bbd1cdc Localize swiftlint 2018-12-13 20:06:37 +01:00
Eric Kuck a8cbe0d683 Reorganized ViewControllers (split out UIViews and UITableViewCells into their own classes)
All swiftlint warnings except one fixed up
2018-12-13 12:58:50 -06:00
Jason A. Donenfeld a5aaec673a Avoid escaping heap allocation 2018-12-13 19:43:12 +01:00
Jason A. Donenfeld 45dd86beee Tidy up str to gostr conversion 2018-12-13 19:36:51 +01:00
Roopesh Chander 65e273c74b TunnelsManager: Remove mentions of 'internal error' 2018-12-13 23:53:17 +05:30
Roopesh Chander fb2b423d06 TunnelsManager: Ask to check Internet connectivity in error alert 2018-12-13 23:49:42 +05:30
Roopesh Chander 03680bf3c9 Remove unused code: InternetReachability 2018-12-13 23:45:21 +05:30
Roopesh Chander 57b95e1e01 TunnelsManager: Remove unused variable 2018-12-13 23:44:13 +05:30
Roopesh Chander 738b2dba52 TunnelsManager: Remove assert 2018-12-13 23:43:15 +05:30
Jason A. Donenfeld d7f91f2888 Simplify C strings 2018-12-13 19:08:38 +01:00
Roopesh Chander 20a23a86da TunnelsManager: Fix race between multiple startActivation() calls
After startActivate() is called on a waiting tunnel, user might turn
on a different tunnel before the waiting tunnel's status gets updated.
This fix prevents that from happening.
2018-12-13 23:34:00 +05:30
Roopesh Chander 872bda6d34 TunnelsManager: Reintroduce waiting for another tunnel to deactivate 2018-12-13 23:21:49 +05:30
Jason A. Donenfeld a9325289d2 Rewrite Logger
This reverts all of Roop's changes to the C code, and then rewrites the
logger logic to be cleaner.
2018-12-13 18:06:37 +01:00
Eric Kuck 825aa95956 More reliable logo sizing 2018-12-13 09:30:13 -06:00
Roopesh Chander b0df5a53da TunnelsManager: Report activation errors through the activationDelegate
Don't report activation errors through completion handlers
2018-12-13 18:56:07 +05:30
Roopesh Chander 8d0d8cc11f Logging: Write versions from both app and extension 2018-12-13 18:09:38 +05:30
Roopesh Chander 2415f20603 Logging: file_log doesn't need the message type 2018-12-13 18:06:57 +05:30
Roopesh Chander b704f7a0db Logging: Tag the entries in the merged log
So we know which entry is from the app and which is from the network
extension.
2018-12-13 18:00:32 +05:30
Roopesh Chander 6ee3bd1ad2 Logging: Use ringlogger for logging from the app 2018-12-13 17:37:20 +05:30
Roopesh Chander 8eb6fa67ef Logging: ringlogger.c: Trim trailing newlines 2018-12-13 17:37:14 +05:30
Roopesh Chander 3520ad13e7 Logging: Use ringlogger for logging from the extension 2018-12-13 17:37:14 +05:30
Roopesh Chander 0a482470bb Avoid using 'VPN' in code where possible 2018-12-13 12:20:10 +05:30
Roopesh Chander 3f2e332c27 mv WireGuard/WireGuard/VPN/ WireGuard/WireGuard/Tunnel/ 2018-12-13 12:14:21 +05:30
Jason A. Donenfeld 6a12af4066 Commit untested ringlogger code 2018-12-13 06:14:24 +01:00
Jason A. Donenfeld f8cbf0ae6d Remove useless whitespace 2018-12-13 05:26:04 +01:00
Jason A. Donenfeld 51213aa4bd Settings: better padding calculation 2018-12-13 05:22:13 +01:00
Eric Kuck a06b50bd1f Fixed hacky logo display for settings 2018-12-12 21:16:28 -06:00
Eric Kuck 42aeb8636c More formatting nits and cyclomatic complexity fixes 2018-12-12 21:09:52 -06:00
Eric Kuck 965f66e5e2 More linter warnings fixed, enabled more swiftlint rules, project cleanup 2018-12-12 15:33:14 -06:00
Eric Kuck ea29a0c7d1 Tons more swiftlint warnings fixed. Still a few remaining. 2018-12-12 12:28:27 -06:00
Eric Kuck fa558a4019 Added swiftlint and fixed all errors (and a bunch, but not all, warnings) 2018-12-12 11:40:57 -06:00
Roopesh Chander a57bb02482 Zip importing: importFromFile should take a completionHandler
Deletion of the being-imported file should be done in the
completionHandler.
2018-12-12 19:24:18 +05:30
Roopesh Chander 60faeea341 ErrorPresenter: Support onPresented for showErrorAlert(title:,message:) 2018-12-12 19:17:06 +05:30
Roopesh Chander 964dd8f723 Zip importing: Handle spaces in filenames correctly
Previously, if a filename of a .conf file inside the zip file
contained spaces, it was not imported.
2018-12-12 16:57:17 +05:30
Jason A. Donenfeld 440073ad9a Supply missing pieces of path change 2018-12-12 01:11:43 +01:00
Eric Kuck 14091de6b6 Fixed a potential race condition, better naming on PacketTunnelSettingsGenerator methods 2018-12-11 16:59:15 -06:00
Eric Kuck 7d387da741 Added an (unfinished) NWPathMonitor implementation for reconnecting on network changes 2018-12-11 16:12:04 -06:00
Roopesh Chander 4e70455800 State restoration: Don't create duplicate mainVC and tunnelsListVC
This creates a duplicate tunnels manager, leading to problems tracking
tunnel statuses.

To reproduce the bug that this commit fixes, you can do the following:
 1. Remove all tunnels
 2. Run in Xcode
 3. Import zip with ~10 tunnels
 4. Stop app in Xcode
 5. Run in Xcode
 6. Turn on 1st tunnel, after it's on, turn off
    Turn on 2nd tunnel, after it's on, turn off
    ...
    After 6-8 tunnels, the spinner doesn't show up, indicating that the
    status is not being tracked.
2018-12-11 17:52:54 +05:30
Roopesh Chander 4d6a21f14e TunnelsManager: Error out only on no-internet scenario
The other scenario happens even during reloading of a tunnel for activation.
2018-12-11 03:48:28 +05:30
Roopesh Chander 0c913d0dbc Remove the feature of waiting for another tunnel to deactivate 2018-12-11 03:47:23 +05:30
Roopesh Chander 39ac53d853 TunnelsManager: Deactivate only when the status becomes 'connected' 2018-12-11 02:42:21 +05:30
Roopesh Chander 56730ef048 Allow turning off the status switch of a waiting tunnel
It just means the waiting should be cancelled
2018-12-11 02:01:54 +05:30
Roopesh Chander 9906689122 TunnelsManager: Handle status change in TunnelsManager
Rather than in TunnelContainer.
2018-12-11 02:01:49 +05:30
Roopesh Chander 305264d064 Error handling: alertText() can be nil
Indicating that no alert is to be shown for that error.
2018-12-11 00:34:22 +05:30
Roopesh Chander d3ba76def3 TunnelsManager: Don't act on status change on tunnelProviders we don't have
That causes errors we don't want, and duplicate notifications.
2018-12-10 17:03:23 +05:30
Roopesh Chander 94b81fc577 TunnelsManager: Always call the completion handler before returning 2018-12-10 17:01:53 +05:30
Roopesh Chander 0472527617 TunnelsManager: Debugging helpers for tunnel status 2018-12-10 16:31:36 +05:30
Roopesh Chander 66bb9c94d4 TunnelsManager: Handle deactivation of a waiting tunnel 2018-12-10 16:28:41 +05:30
Roopesh Chander 42729a0fe7 Tunnels list: Fix AutoLayout error during deletion of a tunnel 2018-12-10 12:59:31 +05:30
Roopesh Chander c375d01199 Settings: Dynamic Type support 2018-12-10 01:45:34 +05:30
Roopesh Chander 9bdfabee6a Tunnel edit: Dynamic Type support 2018-12-10 01:45:34 +05:30
Roopesh Chander 3e27a9ddb0 Tunnel detail: Dynamic Type support 2018-12-10 01:45:34 +05:30
Roopesh Chander 527c1fcb37 Tunnels list: Dynamic Type support for the add button at the center 2018-12-09 18:13:37 +05:30
Roopesh Chander 3a7dbc6e37 Tunnels list: Dynamic Type support for the table view 2018-12-09 18:13:04 +05:30
Roopesh Chander af018988b4 Model: Declare keyLength constant and use that wherever applicable 2018-12-09 14:07:03 +05:30
Roopesh Chander 34a21098fc TunnelsManager: Observe status for all tunnels in one block 2018-12-08 18:43:24 +05:30
Roopesh Chander d7762f5055 TunnelsManager: Remove unused variables 2018-12-08 15:00:26 +05:30
Roopesh Chander ada1b659a8 Zip: Fix comment 2018-12-08 13:43:00 +05:30
Jason A. Donenfeld 01ec87ddee Version bump 2018-12-07 23:58:53 +01:00
Jason A. Donenfeld 9992322186 PacketTunnelProvider: Show log timestamp 2018-12-07 23:56:26 +01:00
Roopesh Chander 2e5d467bc7 Zip: Increase size of buffer used to read data from the archive 2018-12-08 02:17:55 +05:30
Roopesh Chander aa915fc54c Settings: Export log: Perform file operations in a background thread 2018-12-08 02:17:55 +05:30
Roopesh Chander 3af543a352 On-Demand: TunnelViewModel: Make activate-on-demand methods static 2018-12-08 02:17:23 +05:30
Roopesh Chander 4f98330bc0 On-Demand: Move detail text to TunnelViewModel 2018-12-08 02:17:15 +05:30
Jason A. Donenfeld 8227e77111 Plist: Handle crypto export 2018-12-07 18:52:14 +01:00
Jason A. Donenfeld f8f922eda9 Make strings consistent 2018-12-07 18:52:14 +01:00
Roopesh Chander 880ea9237e State restoration: Restore tunnel detail view 2018-12-07 19:05:08 +05:30
Roopesh Chander 059fc77c61 Main VC: No need to refresh statuses if the tunnelsManager isn't initialized yet 2018-12-07 15:52:47 +05:30
Roopesh Chander 800cb8559e Tunnels list: Deselect rows correctly
Do it like UITableViewController.clearsSelectionOnViewWillAppear would.
2018-12-07 12:36:23 +05:30
Roopesh Chander c3a3effd82 Settings: Exporting configs as zip should open document picker
Because:
 - Exporting UI should be consistent with importing UI
 - UIActivityVC takes a long time to open
2018-12-07 12:36:19 +05:30
Roopesh Chander 24de510ea6 Error handling: Use ErrorPresenter.showErrorAlert() instead of per-VC showErrorAlert() methods 2018-12-07 12:36:19 +05:30
Roopesh Chander cc39342e6e Error handling: Use WireGuardAppError and WireGuardResult throughout the app 2018-12-07 12:36:19 +05:30
Roopesh Chander 8d58a79272 Error handling: Introduce a WireGuardResult type to handle errors in callbacks across the app 2018-12-07 12:36:19 +05:30
Roopesh Chander 5aee6f5753 Error handling: Introduce a WireGuardAppError protocol to manage errors
The alert strings shall be located next to where the errors are declared.
2018-12-07 12:36:19 +05:30
Roopesh Chander 80dcd2bd77 Error handling: Cleanup Tunnels Manager errors 2018-12-07 12:36:19 +05:30
Roopesh Chander 5ed47c5898 Error presenter: Always handle the passed error 2018-12-07 12:36:19 +05:30
Roopesh Chander 6cb5719d4e Tunnel detail: Cell status switch should be toggled only after the alert presentation completes 2018-12-07 12:36:19 +05:30
Roopesh Chander 205585c5d4 Refactoring: Consolidate file deletion into a separate function 2018-12-07 12:36:19 +05:30
Roopesh Chander 5764fa4930 NE: Logging: Log file should begin with version numbers and tunnel name 2018-12-07 12:36:19 +05:30
Roopesh Chander 07fbb7c4ad NE: Logging: Make it clear which calls to wg_log use String and which use StaticString 2018-12-04 15:58:53 +05:30
Roopesh Chander fe3722fada Settings: Add timestamp to exported log
And remove the exported log afterwards.
2018-12-04 14:12:53 +05:30
Roopesh Chander 400288b02a Refactor out VPN-handling stuff from tunnels list VC to the main VC 2018-12-03 18:51:51 +05:30
Roopesh Chander 981b86d357 VPN: Error out when tunnel activation fails because there's no internet 2018-12-03 18:51:42 +05:30
Roopesh Chander a1aa13d553 Settings: Export log file 2018-12-02 13:26:53 +05:30
Roopesh Chander 67268a0ce5 NE: Write log to file 2018-11-30 00:36:33 +05:30
Roopesh Chander 64175071fa Info.plist: Add app group id for accessing from both the app and the network extension 2018-11-29 14:05:27 +05:30
Roopesh Chander 41aca352a7 Xcode: Add app groups capability 2018-11-29 12:01:45 +05:30
Roopesh Chander 5f6cd9d8b6 It's 'WiFi', not 'Wifi' 2018-11-28 12:41:35 +05:30
Roopesh Chander ff64ef79f1 NE: All DNS queries must first go through the VPN's DNS servers 2018-11-23 13:04:55 +05:30
Roopesh Chander af49397caa Tunnel view model: Invalidate the configuration object when updating allowedIPs using the 'Exclude private IPs' switch 2018-11-19 15:22:27 +05:30
Roopesh Chander 643e988f74 Config file parser: Be case-insensitive to attribute keys in the config file 2018-11-19 12:37:54 +05:30
Roopesh Chander ccd8e784f3 Config file parser: Fix typo 2018-11-17 22:52:37 +05:30
Roopesh Chander b5689edf71 Exporting: Export to zip in a background thread 2018-11-15 13:39:56 +05:30
Roopesh Chander 6857a579b3 Exporting: Refactor out zip exporting into a separate class 2018-11-15 13:39:56 +05:30
Roopesh Chander 7f2772473e Exporting: No need to check for duplicate names - we disallow it at creation time itself 2018-11-15 13:39:56 +05:30
Roopesh Chander 1a419526e7 Importing: Import from zip in a background thread 2018-11-15 13:39:56 +05:30
Roopesh Chander b2b2818e2e Importing: Refactor out zip importing into a separate class 2018-11-14 18:52:10 +05:30
Roopesh Chander ed1bae8ad0 Tunnels manager: After saving after activating on-demand, reload tunnel 2018-11-14 13:02:53 +05:30
Roopesh Chander 6da2b4d0be Tunnels manager: Need to keep VPN-on-demand tunnels's status under observation
Because they can turn on automatically, even while the app is in the foreground.
2018-11-12 19:24:13 +05:30
Roopesh Chander 8385e8d19e Tunnel detail: Show VPN-on-demand information 2018-11-12 19:24:13 +05:30
Roopesh Chander dc19529f10 Tunnels manager: Keep track of NETunnelProviderManager's isOnDemandEnabled property 2018-11-12 19:24:13 +05:30
Roopesh Chander e708e26a00 Tunnel edit: Update for VPN-on-demand changes 2018-11-12 19:24:13 +05:30
Roopesh Chander 1caa186ebc Tunnel view model: VPN-on-demand stuff shouldn't be part of the tunnel model 2018-11-12 19:24:13 +05:30
Roopesh Chander c0eb34c755 Model, Tunnels manager: Rewrite the model for VPN-on-demand
The VPN-on-demand settings should not be part of the tunnel
configuration. Rather, the onDemandRules stored in the
tunnel provider configuration serve as the one place
where the VPN-on-demand settings are stored.
2018-11-12 19:24:13 +05:30
Roopesh Chander b09f3e3992 TunnelsManager: Support for on-demand rules 2018-11-11 01:31:38 +05:30
Roopesh Chander 151ad9de84 Tunnel edit, Tunnel view model: UI for providing On-Demand activation options 2018-11-11 01:18:36 +05:30
Roopesh Chander 049e9f0b05 Model: Add activationType to tunnel configuration
We make sure existing tunnel serializations can be deserialized correctly.

We also bump up the tunnelConfigurationVersion, because the tunnel
configuration contents have changed.
2018-11-11 01:17:36 +05:30
Roopesh Chander 75474acb59 Model: ActivityType enum to represent VPN-on-demand options 2018-11-10 19:17:24 +05:30
Roopesh Chander ae627c5e5d Model: TunnelConfiguration: Add explicit conformance to Decodable 2018-11-10 19:01:34 +05:30
Roopesh Chander 0db19f187b Model: Ensure that a TunnelConfiguration always has a valid array of peers 2018-11-10 17:02:30 +05:30
Roopesh Chander e974b7df23 VPN: When activating while another tunnel is active, deactivate the other tunnel 2018-11-10 16:44:28 +05:30
Roopesh Chander e6917a6075 TunnelsManager: startDeactivation() need not take a completion handler
Because the completion handler pattern doesn't fit in this case.
2018-11-10 16:44:28 +05:30
Roopesh Chander 97d8570d99 VPN: There are no DNS errors to handle in the app now 2018-11-10 16:44:28 +05:30
Roopesh Chander 6d28240531 NE: Minor refactoring to enable calling startTunnel() with a tunnelConfiguration 2018-11-09 22:29:52 +05:30
Roopesh Chander 9568c7f980 VPN: Refresh tunnel statuses when app gets to the foreground
Because the tunnel could've be activated from iOS Settings now
2018-11-09 19:29:34 +05:30
Roopesh Chander fc93ca65a5 Remove unused code 2018-11-09 19:20:33 +05:30
Roopesh Chander fefa39de46 TunnelsManager: Ability to refresh connection statuses 2018-11-09 19:19:32 +05:30
Roopesh Chander c9c58f3755 NE: When there's an error starting the tunnel, show it to the user using displayMessage() 2018-11-09 17:07:42 +05:30
Roopesh Chander fffaba451a Remove unused file PacketTunnelOptionKey.swift 2018-11-08 18:59:16 +05:30
Roopesh Chander c0f9c01fb9 Move logic to extension: Bring up the tunnel from the stored providerConfiguration 2018-11-08 18:59:16 +05:30
Roopesh Chander df7197473e DNSResolver: Simplify 2018-11-08 17:52:11 +05:30
Roopesh Chander 40ce2604ea DNSResolver: Let's not cache DNS resolution results anymore 2018-11-08 17:52:11 +05:30
Roopesh Chander 7bde4a6300 DNSResolver: DNS resolution can now happen synchronously 2018-11-08 17:52:11 +05:30
Roopesh Chander 8f35d70482 Model: Endpoint.hostname() 2018-11-08 17:52:11 +05:30
Roopesh Chander e83af4bce5 Move logic to extension: NETunnelProviderProtocol extension code should be shared 2018-11-08 17:52:01 +05:30
Roopesh Chander 80e563406b Move logic to extension: Refactor PacketTunnelOptionsGenerator into a PacketTunnelSettingsGenerator 2018-11-08 15:44:13 +05:30
Roopesh Chander 13eebb2e64 Move logic to extension: Move DNSResolver to extension 2018-11-08 15:09:45 +05:30
Roopesh Chander 3f3f22a048 Move logic to extension: .resolvingEndpointDomains is not longer a valid status 2018-11-08 15:08:57 +05:30
Roopesh Chander 7c9d45ac97 Move logic to extension: DNS resolution no longer happens in the app 2018-11-08 15:04:12 +05:30
Roopesh Chander 6e5b691a83 Move logic to extension: Include shared model code when building the extension 2018-11-08 14:50:05 +05:30
Roopesh Chander 2afb2244ff Model: Move InterfaceConfiguration.publicKey to Curve25519.swift
The code for public key calculation need not be shared with the extension
2018-11-08 14:48:25 +05:30
Roopesh Chander de92f2dcd8 Move logic to extension: Move PacketTunnelOptionsGenerator to the extension 2018-11-08 14:16:30 +05:30
Roopesh Chander c7cad030aa Move logic to extension: Invoke startTunnel() without any options 2018-11-08 14:15:01 +05:30
Roopesh Chander f438f3ef6b Move logic to extension: Move model files to Shared 2018-11-08 13:56:50 +05:30
Roopesh Chander d15473a2f5 Tunnel edit: While preparing for reuse, should make onValueBeingEdited nil as well 2018-11-08 12:25:36 +05:30
Jason A. Donenfeld 8cb1850e44 Version bump 2018-11-07 17:43:50 +01:00
Roopesh Chander cc52c88321 iPad: Ensure we set sourceRect for all cases where we use sourceView 2018-11-07 17:43:30 +01:00
Roopesh Chander 2fd8792fa5 Info.plist: Register for handling public.text files for Open-in 2018-11-07 17:43:30 +01:00
Roopesh Chander 8ad6ba6adc Importing: Also support importing public.text files in the file picker 2018-11-07 17:43:30 +01:00
Roopesh Chander 6e142cd924 iPad: Set correct sourceRect for the popover anchored on the central 'Add' button 2018-11-07 18:23:12 +05:30
Roopesh Chander d477b132e4 TunnelsManager: Return a manager with no tunnels in the simulator
To be able to run at least parts of the app in the simulator.
2018-11-07 18:15:20 +05:30
Roopesh Chander 1bba1ffe16 iPad: Configuring the split-view controller should happen in init(), not loadView() 2018-11-07 15:54:30 +05:30
Jason A. Donenfeld f8f19ef3d7 Settings: show build id 2018-11-07 05:45:39 +01:00
Jason A. Donenfeld b927c961ae Version bump 2018-11-06 20:18:11 +01:00
Jason A. Donenfeld 414835e60e Importing: simplify 2018-11-06 20:16:40 +01:00
Roopesh Chander b9b8ae8908 Importing: Assume imported files without .conf or .zip extensions to be a config file 2018-11-07 00:35:37 +05:30
Roopesh Chander c9b27d1617 DNSResolver: No need to resolve if the endpoint is already an IP address 2018-11-06 23:59:48 +05:30
Roopesh Chander 1410b89f23 Model: Endpoint.hasHostAsIPAddress() 2018-11-06 23:59:48 +05:30
Jason A. Donenfeld b57824cde1 PacketTunnelProvider: modernize header 2018-11-06 19:04:53 +01:00
Roopesh Chander cc57d8443e Global: swiftlint autocorrect --format 2018-11-06 22:42:53 +05:30
Roopesh Chander fe191b1eff Global: swiftlint autocorrect 2018-11-06 22:42:05 +05:30
Roopesh Chander 2b3347b294 Importing: Error out on file with unsupported file extension 2018-11-06 22:32:33 +05:30
Jason A. Donenfeld 040f0a25ea wireguard-go-bridge: take fd instead of fnptr 2018-11-06 16:27:25 +01:00
Jason A. Donenfeld 2a7aa578d2 Xcode: enable more warnings 2018-11-06 16:27:25 +01:00
Roopesh Chander 0f61703c34 Tunnel edit: TunnelEditTableViewKeyValueCell need not support a read-only mode now 2018-11-06 19:01:13 +05:30
Roopesh Chander 845305d8c8 Tunnel edit: A new cell class for the public key field, to make the value scrollable 2018-11-06 17:05:03 +05:30
Roopesh Chander 5ea1c5aea8 Tunnel detail: Refactor out the label scrolling into a separate UI class 2018-11-06 16:49:09 +05:30
Roopesh Chander e9044966bf Tunnel view model: Peers in a configuation may not share the same public key 2018-11-06 08:17:56 +05:30
Roopesh Chander e05a6c31b9 Parser: Peers in a configuation may not share the same public key 2018-11-06 08:17:56 +05:30
Jason A. Donenfeld e6a6decd79 Version bump
We update the build number, not the version number, so that test flight
doesn't need a new review.
2018-11-05 21:44:00 +01:00
Roopesh Chander 4c701a0e4f Parser: Address, DNS and AllowedIPs can have mutliple entries 2018-11-05 23:53:00 +05:30
Roopesh Chander c1286c95c3 QR Code: Dismiss the QR code screen when the name prompt is cancelled 2018-11-05 23:38:41 +05:30
Roopesh Chander 3e8af3fd19 Tunnel view model: No need to save if we already have a validated configuration object 2018-11-05 22:55:09 +05:30
Jason A. Donenfeld 12a4acef61 global: convert to Swift 4.2 2018-11-05 06:31:25 +01:00
Jason A. Donenfeld 145b524954 TunnelsManager: account for no or many endpoints 2018-11-05 06:23:26 +01:00
Jason A. Donenfeld 8958a04ba4 PacketTunnelProvider: clamp v6 addresses to /120 2018-11-05 03:11:11 +01:00
Jason A. Donenfeld 395ccf0e87 Settings: account for bottom padding on iPhone X
Reported-by: Jeffrey A. Donenfeld <jad@runblue.com>
2018-11-05 02:09:40 +01:00
Jason A. Donenfeld 54cfa3dba3 XCode: use old network extension ID 2018-11-04 05:42:25 +01:00
Jason A. Donenfeld 1f7aaaa233 XCode: unify version strings 2018-11-04 03:51:50 +01:00
Jason A. Donenfeld 1ed21aa60c Settings: anchor logo to bottom 2018-11-04 03:37:18 +01:00
Roopesh Chander 8fb0baf5d2 Add a correct launch-screen storyboard 2018-11-04 02:31:04 +05:30
Jason A. Donenfeld 939f50be5f Revert "Settings: Swap table view sections"
This reverts commit 1108f82489.
2018-11-03 19:53:04 +01:00
Jason A. Donenfeld d91cac6327 Settings: simplify 2018-11-03 19:48:10 +01:00
Jason A. Donenfeld 355a555cc4 Global: run through swiftlint 2018-11-03 19:35:25 +01:00
Jason A. Donenfeld b3b63b5f5d Settings: limit size of logo 2018-11-03 19:20:21 +01:00
Jason A. Donenfeld 074e5e7063 Settings: use updated wireguard banner logo 2018-11-03 18:37:51 +01:00
Jason A. Donenfeld 4aba533630 TunnelsManager: restore sanity 2018-11-03 18:20:25 +01:00
Roopesh Chander c4d5f5975a Change version with 0.0.yyyymmdd versioning scheme 2018-11-03 19:28:29 +05:30
Roopesh Chander 215c56cec3 VPN: Make sure actions inside tunnelProvider completion handlers are done in the main queue
They should really already be in the main queue, but we do this just in case.
2018-11-03 19:26:28 +05:30
Roopesh Chander f4f1278a82 VPN: Start observing the status only if startTunnel() succeeds
This should fix the status change to .disconnected when we're resolving endpoints
2018-11-03 19:22:30 +05:30
Roopesh Chander 6fd9e7f53a VPN: We should never get a status change to .disconnected if we're resolving endpoints
But we do, which we'll fix subsequently
2018-11-03 18:58:27 +05:30
Roopesh Chander 395e6fcdda Revert "TunnelsManager: initialize observer on correct thread"
Rather, we'll make sure we always call startObservingTunnelStatus from
the main thread.

This reverts commit d16a6a167c.
2018-11-03 18:45:26 +05:30
Roopesh Chander c0c1fddb75 Settings: Show the captioned WireGuard logo at the end 2018-11-03 18:41:54 +05:30
Roopesh Chander 1108f82489 Settings: Swap table view sections 2018-11-03 17:53:50 +05:30
Roopesh Chander 4f287360a8 Remove empty image 2018-11-03 17:39:43 +05:30
Jeroen Leenarts f327edfc09 Add Wireguard logo with caption to project 2018-11-03 17:39:22 +05:30
Roopesh Chander bfdb3efa41 Tunnels list: Fix status switch look after flipping it off after an error 2018-11-03 17:28:16 +05:30
Roopesh Chander 0d4218f0c7 ErrorPresenter: showErrorAlert takes an onPresentated handler 2018-11-03 17:27:07 +05:30
Roopesh Chander 16c9f80ed8 Tunnels list: Should deselect the row when handling the selection 2018-11-03 16:05:02 +05:30
Roopesh Chander 49f055465b Tunnel list: Don't show the detail view after creating a config from scratch
So it's consistent with the other two "Add a configuration" menu items
2018-11-03 15:51:29 +05:30
Roopesh Chander 4ab4c79934 Ensure that all tunnel names are trimmed of whitespaces 2018-11-03 15:45:29 +05:30
Roopesh Chander eb122f87e2 Zip archive: Handle files within folders inside the zip 2018-11-03 15:37:31 +05:30
Jason A. Donenfeld d16a6a167c TunnelsManager: initialize observer on correct thread
Because of the callback recursion, this function needs to always be called from the right thread
2018-11-03 07:03:23 +01:00
Jason A. Donenfeld b81943aaac TunnelsManager: do not track currentTunnel
It's error prone and does not give us anything.
2018-11-03 06:22:57 +01:00
Jason A. Donenfeld 8bbc49015c TunnelsManager: do not change back to inactive if we are resolving the endpoint 2018-11-03 06:09:57 +01:00
Roopesh Chander 929470c693 Tunnels list: Remove separator lines in the table view 2018-11-03 10:26:15 +05:30
Roopesh Chander 12900e6af3 Tunnels list: Show an 'Add' button when there are no tunnels 2018-11-03 10:26:09 +05:30
Roopesh Chander 4bb45397f1 Tunnels list: Show a busy indicator before the tunnels are loaded 2018-11-03 10:25:47 +05:30
Roopesh Chander c6df88c893 Tunnels list: The Add and Settings buttons should be no-ops until the tunnels are loaded 2018-11-03 10:25:47 +05:30
Roopesh Chander e332d6cf0e Tunnel edit: Use layoutMarginsGuide instead of constants 2018-11-03 10:25:47 +05:30
Jason A. Donenfeld c025ff8024 TunnelsManager: fix use of arrayslice in addMultiple 2018-11-03 04:37:56 +01:00
Jason A. Donenfeld aa5634ee27 TunnelsManager: get rid of name set
Instead, tunnels itself should be a sorted-set. For now it's a list,
which is probably fine though.
2018-11-03 03:53:08 +01:00
Jason A. Donenfeld 2fdbe1c492 TunnelsManager: get rid of index management
No need for premature optimization. There aren't that many tunnels most
of the time, and calling sort on a partially sorted array is fast.
2018-11-03 03:43:09 +01:00
Jason A. Donenfeld 6c737545aa Global: no periods at the end of error messages 2018-11-03 03:43:09 +01:00
Jason A. Donenfeld 83eeb289c2 Import: rework addMultiple logic 2018-11-03 03:43:09 +01:00
Roopesh Chander 7077dac4e9 Tunnel detail: In the key-value cell, make the value label scrollable horizontally 2018-11-02 23:48:27 +05:30
Roopesh Chander 36292d570a Tunnel edit: Ensure all key-value fields have a placeholder text 2018-11-02 18:20:32 +05:30
Roopesh Chander 8fee05969e DNSResolver: Bugfix: Always call completion handler 2018-11-02 18:10:51 +05:30
Roopesh Chander c04773276a Info.plist: Update document icons and description 2018-11-02 17:40:46 +05:30
Roopesh Chander dd04633b1d Info.plist: Document type UTI should be consistent with exported UTI 2018-11-02 17:40:46 +05:30
Roopesh Chander 0e61d55d3e Info.plist: Register zip file for open-in 2018-11-02 17:40:46 +05:30
Roopesh Chander 2c999c09de Info.plist: Add .conf extension to document type 2018-11-02 17:40:46 +05:30
Roopesh Chander 2abcba8031 Add document icon 2018-11-02 17:39:43 +05:30
Roopesh Chander 1a169d5cc6 Add app icons 2018-11-02 16:11:24 +05:30
Roopesh Chander db8c6cbc21 Handle cell reuse in showing delete buttons in red 2018-11-02 13:24:10 +05:30
Roopesh Chander c643cd1478 Table edit: Show/hide 'Exclude Private IPs' instead of enable/disable 2018-11-02 13:12:10 +05:30
Roopesh Chander 864394cf81 Tunnel view model: If there's just one peer, populate the scratchpad on init
So that exclude private IPs can be computed correctly.
2018-11-02 13:09:45 +05:30
Roopesh Chander c61491391e Tunnel view model: Initialize peerData.numberOfPeers 2018-11-02 12:05:58 +05:30
Jason A. Donenfeld 799c2d96cd DNSResolver: getaddrinfo returns a sockaddr and inet_ntop takes strlen
The way this was written before was totally wrong.
2018-11-02 05:34:17 +01:00
Jason A. Donenfeld 2267079367 NetworkExtension: check isTunnelClosed before packet existence 2018-11-01 22:01:52 +01:00
Jason A. Donenfeld 73f4a90dee Global: OK over Ok 2018-11-01 21:22:12 +01:00
Roopesh Chander 2bb42ac3ec Deletion buttons are shown in red 2018-11-01 23:53:09 +05:30
Roopesh Chander bf2031776b Tunnel edit: Highlight erroring field keys in red 2018-11-01 23:45:48 +05:30
Roopesh Chander 9f98e172b6 Tunnels list: Swipe left to delete 2018-11-01 23:45:48 +05:30
Jason A. Donenfeld 42948b2816 Global: fix up strings 2018-11-01 19:01:43 +01:00
Roopesh Chander a0b24f53b5 QR code: Fix what happens when an error is shown 2018-11-01 22:08:01 +05:30
Roopesh Chander 79672fa920 NE: Show an alert when someone tries to start the VPN from iOS Settings 2018-11-01 22:08:01 +05:30
Jason A. Donenfeld ae992c3deb Export: fix up export format 2018-11-01 17:31:50 +01:00
Roopesh Chander 479f04a579 Tunnel errors: Consolidate tunnel activation errors into ErrorPresenter 2018-11-01 16:58:33 +05:30
Roopesh Chander e222c8391e TunnelsManager: Better errors 2018-11-01 16:57:40 +05:30
Roopesh Chander c056000b55 ConfigFile: WgQuickConfigFileWriter: Fix '[Peer]' section header 2018-11-01 16:13:30 +05:30
Roopesh Chander 2d6426f798 Importing: Account for errors in showing the 'No configurations found' error 2018-11-01 15:59:17 +05:30
Roopesh Chander 1889614157 Tunnel detail: Fix deletion of tunnel 2018-11-01 15:54:37 +05:30
Roopesh Chander d62c1fd84a VPN: TunnelsManager: Fix deletion code 2018-11-01 15:53:10 +05:30
Roopesh Chander c999c2a0ec VPN: Restart tunnel after modifying a currently active configuration 2018-11-01 15:36:59 +05:30
Roopesh Chander ecad18749a QR code: Degrade gracefully when running on the simulator or on a device without a camera 2018-11-01 11:45:44 +05:30
Roopesh Chander f7331997b2 Revert "QR code: QR code scanning is not available in the simulator"
This reverts commit 9729386406.
2018-11-01 11:45:44 +05:30
Roopesh Chander 771aab9f0f Importing: Show error when the zip file contains no .conf files 2018-11-01 11:45:44 +05:30
Roopesh Chander c681b02f7d VPN: We have to start observing the tunnelContainer before we attempt to activate it 2018-11-01 11:45:44 +05:30
Roopesh Chander fd30ce0e0d Importing: Error out on duplicate name 2018-11-01 11:45:44 +05:30
Roopesh Chander de7bf4cf16 QR Code: Error out on duplicate name 2018-11-01 11:45:44 +05:30
Roopesh Chander 247396ce48 Tunnel edit: Error out on duplicate name when creating / modifying a tunnel 2018-11-01 11:45:44 +05:30
Roopesh Chander 02ff2f783c VPN: An ErrorPresenter class to consolidate showing of error alerts 2018-11-01 11:45:44 +05:30
Roopesh Chander d20a1ce7a4 VPN: Introduce an error enum for adding/modifying/removing tunnels 2018-11-01 11:45:44 +05:30
Roopesh Chander 6a586b6f98 VPN: TunnelsManager: s/TunnelsManagerError/TunnelActivationError/g; 2018-11-01 01:47:53 +05:30
Roopesh Chander 699ace099c VPN: TunnelsManager should keep track of tunnel names to prevent duplicate names 2018-11-01 01:47:53 +05:30
Jason A. Donenfeld 56d827d04a UI: not all subclasses of CopyableLabelTableViewCell have a detailTextLabel, so generalize 2018-10-31 16:38:05 +01:00
Jason A. Donenfeld 04993104b1 TunnelManager: bound recursion in startActivation 2018-10-31 15:58:03 +01:00
Roopesh Chander 5528be92ff VPN: Retry startTunnel based on error conditions 2018-10-31 16:42:29 +05:30
Roopesh Chander dae0e10e20 Tunnel list: Fix importing zip with multiple configurations 2018-10-31 14:30:25 +05:30
Roopesh Chander efe019b643 VPN: Support adding multiple configurations in one shot 2018-10-31 14:29:54 +05:30
Jason A. Donenfeld d75a89c09a wireguard-go-bridge: extract version for consumption by network extension 2018-10-31 04:08:13 +01:00
Jason A. Donenfeld 003286aee0 wireguard-go-bridge: simplify logging and remove tags 2018-10-31 03:22:22 +01:00
Jason A. Donenfeld 47c9924405 NetworkExtension: close context before turning off go
The go turnOff code waits for all readers to have completed. In order to
make readers complete, we must send the signal to unblock the request.
Thus, we must reorder these.
2018-10-31 03:03:00 +01:00
Jason A. Donenfeld 34b9023f67 UI: More elegant copy-to-clipboard behavior 2018-10-31 02:17:47 +01:00
Roopesh Chander 9729386406 QR code: QR code scanning is not available in the simulator 2018-10-30 19:22:24 +05:30
Roopesh Chander 203eb46b28 Style: Remove 'Based on' attributions 2018-10-30 19:07:07 +05:30
Roopesh Chander b12d7bfd95 QR code: Show label overlay with info on how to generate the QR code 2018-10-30 19:04:15 +05:30
Roopesh Chander 1039f1f35a Tunnel creation: Placeholders for Listen port, Pre-shared key, Persistent Keepalive 2018-10-30 18:50:56 +05:30
Roopesh Chander 13e3f4ae0a VPN: Refactor use of DNS resolution while activating the tunnel 2018-10-30 18:36:28 +05:30
Roopesh Chander cc63b0e64f NE: Print error when unable to start the tunnel 2018-10-30 18:36:28 +05:30
Roopesh Chander 167f5ce55f Tunnel view model: IP address can be specified without '/cidr' 2018-10-30 13:46:10 +05:30
Roopesh Chander b372d50757 Model: IP address can be specified without '/cidr' 2018-10-30 13:45:16 +05:30
Roopesh Chander 46080aae63 Fix error message: s/atleast/at least/g; 2018-10-30 13:32:14 +05:30
Jason A. Donenfeld f6d2feec22 Global: fix up captialization in headers 2018-10-30 03:57:35 +01:00
Jason A. Donenfeld 513cd7aa04 Style: simplify remaining headers 2018-10-30 03:55:43 +01:00
Jason A. Donenfeld 896ed2b33d XCode: fall back to default settings 2018-10-30 03:54:00 +01:00
Jason A. Donenfeld f3fa487702 ZIP: fix linter warnings 2018-10-30 00:50:01 +01:00
Roopesh Chander 495b017449 VPN: Better error messages 2018-10-30 00:24:50 +05:30
Roopesh Chander 0ef0eeb116 VPN: Specify an error when there are no peers with an endpoint 2018-10-29 23:38:40 +05:30
Roopesh Chander 22dd3dcc40 Export: Exporting config files 2018-10-29 23:06:55 +05:30
Roopesh Chander d63ee03d66 mv Parsing/ ConfigFile/ 2018-10-29 19:05:01 +05:30
Roopesh Chander 742da89df3 Settings: Add a settings panel 2018-10-29 17:34:09 +05:30
Roopesh Chander 7498e9556b Model: Cap networkPrefixLengths to valid values 2018-10-29 16:49:49 +05:30
Roopesh Chander 93be31e4e6 Tunnel edit: Support for exclude private IPs 2018-10-29 16:44:47 +05:30
Roopesh Chander eb61152fe0 Tunnel view model: Support for exclude private IPs 2018-10-29 16:43:53 +05:30
Roopesh Chander 7f69cb6118 Tunnel edit: Fix keyboard type for reused cells 2018-10-29 16:43:12 +05:30
Roopesh Chander ec3b43bcdf Tunnel detail: Assume there's just one section per peer 2018-10-29 13:02:11 +05:30
Roopesh Chander e83a724d83 Tunnel edit: Assume there's just one section per peer 2018-10-29 12:47:00 +05:30
Roopesh Chander 641bcdea04 Tunnel edit: Set correct keyboard types 2018-10-29 06:19:50 +05:30
Roopesh Chander 3e1748bdd9 VPN: If we don't have to make a DNS request, we shouldn't enter that status 2018-10-29 06:19:50 +05:30
Roopesh Chander 5b85d58b27 VPN: Cache DNS resolutions while the app is in memory 2018-10-29 06:19:50 +05:30
Roopesh Chander 8d3b616fa8 VPN: Reload the tunnel before starting it up
To avoid errors like this: https://stackoverflow.com/q/47550706
2018-10-29 06:19:50 +05:30
Roopesh Chander 3ffd4a8280 Tunnel list, detail: Deletion of tunnels 2018-10-29 06:19:43 +05:30
Roopesh Chander 4e36ed43c0 VPN: Fix deletion of tunnels 2018-10-29 04:54:57 +05:30
Roopesh Chander 1e7fa2390d Fix: Make sure all prepareForReuse() implementations call super 2018-10-29 02:27:14 +05:30
Roopesh Chander 6b6a4d3f17 Tunnel edit: Set correct title when editing 2018-10-29 02:24:32 +05:30
Roopesh Chander b9d6d194bc Tunnel detail: Change title after editing completes 2018-10-29 02:21:19 +05:30
Roopesh Chander 6b969b7bdf Tunnel detail: Copying the public key 2018-10-29 02:19:11 +05:30
Roopesh Chander 90eac14b9a Tunnel editing: Fix cell class names 2018-10-29 02:15:43 +05:30
Roopesh Chander b9c3e062ea Import: Use the refactored function for Open-in 2018-10-29 02:09:50 +05:30
Roopesh Chander 894925466d Import: Minor refactoring 2018-10-29 02:08:40 +05:30
Roopesh Chander 571572943b Import: Show errors when importing fails 2018-10-29 02:03:39 +05:30
Roopesh Chander 2b72e76679 Import config: Directly add config, don't open up the editor 2018-10-29 01:58:21 +05:30
Roopesh Chander b060b9ff06 Zip: Import configs from zip files 2018-10-29 01:52:43 +05:30
Roopesh Chander 2d41591cfd Zip: Add zip file reader 2018-10-29 01:51:49 +05:30
Roopesh Chander 3a58dd9481 Zip: Include minizip in our Xcode project 2018-10-29 01:03:53 +05:30
Roopesh Chander 131d362211 Zip: Add code from the minizip project
Source: https://zlib.net/zlib-1.2.11.tar.gz
2018-10-29 01:03:44 +05:30
Roopesh Chander 974b2568d2 QR code: Save the scanned tunnel 2018-10-28 23:32:15 +05:30
Jeroen Leenarts fabfd17d44 QR code: Ask for title when scanning a QR code 2018-10-28 23:20:18 +05:30
Roopesh Chander b172ba3a2a QR code: Minor refactoring 2018-10-28 23:19:56 +05:30
Jeroen Leenarts 1ae0b9a64b QR code: Support some form of rotation. 2018-10-28 23:19:52 +05:30
Jeroen Leenarts 14a802417b QR code: Make sure correct layering is used to make sure hint remains visible. 2018-10-28 23:19:45 +05:30
Roopesh Chander 153c11c42c QR code: Integrate Eric's QR code scanner 2018-10-28 22:22:32 +05:30
Roopesh Chander 7795b6954c Info.plist: Indicate that the app shall use the camera 2018-10-28 22:01:02 +05:30
Roopesh Chander 54dc70f910 Tunnels list: Need to pass in a name to the parser 2018-10-28 21:59:52 +05:30
Roopesh Chander d7691158a4 Revert "Parser: Interface name can be added after parsing"
This reverts commit d3a9e79149.
2018-10-28 21:57:18 +05:30
Eric Kuck e86923528b QR code: Ability to add tunnels with a QR code scan 2018-10-28 18:26:41 +05:30
Roopesh Chander be1383aed8 Model: Ensure name is not empty
We don't need it because we don't have to open the new-config UI
after scanning a QR code.

This reverts commit db72e95.
2018-10-28 18:13:47 +05:30
Roopesh Chander ac29886f7b VPN: A tunnel may be already active on app startup 2018-10-28 18:09:38 +05:30
Roopesh Chander 4a71c0e98e VPN: Remove ability to deactivate the tunnel while resolving DNS 2018-10-28 17:47:01 +05:30
Roopesh Chander 8df53b7709 VPN: DNSResolver: Resolve multiple endpoints in parallel 2018-10-28 17:44:25 +05:30