aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* TunnelsManager: Handle deactivation of a waiting tunnelRoopesh Chander2018-12-101-1/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnels list: Fix AutoLayout error during deletion of a tunnelRoopesh Chander2018-12-101-2/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Settings: Dynamic Type supportRoopesh Chander2018-12-101-2/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel edit: Dynamic Type supportRoopesh Chander2018-12-101-6/+56
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel detail: Dynamic Type supportRoopesh Chander2018-12-102-6/+57
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnels list: Dynamic Type support for the add button at the centerRoopesh Chander2018-12-091-0/+2
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnels list: Dynamic Type support for the table viewRoopesh Chander2018-12-091-6/+12
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Model: Declare keyLength constant and use that wherever applicableRoopesh Chander2018-12-093-12/+15
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Observe status for all tunnels in one blockRoopesh Chander2018-12-081-52/+54
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Remove unused variablesRoopesh Chander2018-12-081-14/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Zip: Fix commentRoopesh Chander2018-12-081-1/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Version bump0.0.20181104-5Jason A. Donenfeld2018-12-071-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Zip: Increase size of buffer used to read data from the archiveRoopesh Chander2018-12-081-1/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Settings: Export log: Perform file operations in a background threadRoopesh Chander2018-12-081-26/+31
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* On-Demand: TunnelViewModel: Make activate-on-demand methods staticRoopesh Chander2018-12-082-4/+4
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* On-Demand: Move detail text to TunnelViewModelRoopesh Chander2018-12-082-20/+13
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Plist: Handle crypto exportJason A. Donenfeld2018-12-071-0/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Make strings consistentJason A. Donenfeld2018-12-073-8/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* State restoration: Restore tunnel detail viewRoopesh Chander2018-12-075-1/+76
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Main VC: No need to refresh statuses if the tunnelsManager isn't initialized yetRoopesh Chander2018-12-071-4/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnels list: Deselect rows correctlyRoopesh Chander2018-12-071-1/+7
| | | | | | Do it like UITableViewController.clearsSelectionOnViewWillAppear would. Signed-off-by: Roopesh Chander <roop@roopc.net>
* Settings: Exporting configs as zip should open document pickerRoopesh Chander2018-12-071-5/+3
| | | | | | | | Because: - Exporting UI should be consistent with importing UI - UIActivityVC takes a long time to open Signed-off-by: Roopesh Chander <roop@roopc.net>
* Error handling: Use ErrorPresenter.showErrorAlert() instead of per-VC showErrorAlert() methodsRoopesh Chander2018-12-074-38/+9
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Error handling: Use WireGuardAppError and WireGuardResult throughout the appRoopesh Chander2018-12-075-41/+45
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Error handling: Introduce a WireGuardResult type to handle errors in callbacks across the appRoopesh Chander2018-12-072-28/+30
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Error handling: Introduce a WireGuardAppError protocol to manage errorsRoopesh Chander2018-12-073-29/+35
| | | | | | The alert strings shall be located next to where the errors are declared. Signed-off-by: Roopesh Chander <roop@roopc.net>
* Error handling: Cleanup Tunnels Manager errorsRoopesh Chander2018-12-075-76/+110
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Error presenter: Always handle the passed errorRoopesh Chander2018-12-071-4/+3
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel detail: Cell status switch should be toggled only after the alert presentation completesRoopesh Chander2018-12-071-4/+5
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Refactoring: Consolidate file deletion into a separate functionRoopesh Chander2018-12-072-17/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Settings: Add timestamp to exported logRoopesh Chander2018-12-041-1/+8
| | | | | | And remove the exported log afterwards. Signed-off-by: Roopesh Chander <roop@roopc.net>
* Refactor out VPN-handling stuff from tunnels list VC to the main VCRoopesh Chander2018-12-034-72/+94
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: Error out when tunnel activation fails because there's no internetRoopesh Chander2018-12-034-7/+105
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Settings: Export log fileRoopesh Chander2018-12-021-3/+52
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Info.plist: Add app group id for accessing from both the app and the network extensionRoopesh Chander2018-11-291-0/+2
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Xcode: Add app groups capabilityRoopesh Chander2018-11-291-0/+4
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* It's 'WiFi', not 'Wifi'Roopesh Chander2018-11-284-17/+17
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel view model: Invalidate the configuration object when updating allowedIPs using the 'Exclude private IPs' switchRoopesh Chander2018-11-191-0/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Config file parser: Be case-insensitive to attribute keys in the config fileRoopesh Chander2018-11-191-12/+12
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Config file parser: Fix typoRoopesh Chander2018-11-171-1/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Exporting: Export to zip in a background threadRoopesh Chander2018-11-152-23/+32
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Exporting: Refactor out zip exporting into a separate classRoopesh Chander2018-11-153-21/+45
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Exporting: No need to check for duplicate names - we disallow it at creation time itselfRoopesh Chander2018-11-151-9/+2
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Importing: Import from zip in a background threadRoopesh Chander2018-11-152-42/+43
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Importing: Refactor out zip importing into a separate classRoopesh Chander2018-11-143-43/+65
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnels manager: After saving after activating on-demand, reload tunnelRoopesh Chander2018-11-141-3/+16
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnels manager: Need to keep VPN-on-demand tunnels's status under observationRoopesh Chander2018-11-121-4/+13
| | | | | | Because they can turn on automatically, even while the app is in the foreground. Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel detail: Show VPN-on-demand informationRoopesh Chander2018-11-121-2/+67
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnels manager: Keep track of NETunnelProviderManager's isOnDemandEnabled propertyRoopesh Chander2018-11-122-5/+10
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel edit: Update for VPN-on-demand changesRoopesh Chander2018-11-121-14/+26
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>