aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Localize all the thingsRoopesh Chander2018-12-2113-135/+408
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel detail: iPad: Handle deletion of tunnel correctlyRoopesh Chander2018-12-211-3/+10
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* NE: Update listen port only when first interface changesRoopesh Chander2018-12-212-4/+27
| | | | | | | When handling network path changes, change the listen port only when the first interface has changed. Signed-off-by: Roopesh Chander <roop@roopc.net>
* NE: Change handling of bad domain names and Activate On DemandRoopesh Chander2018-12-212-42/+30
| | | | | | | | | | | | | | | | The solution implemented in commit b8c331c causes the tunnel to remain in 'Activating' state, without the ability to cancel that. So, in this commit, instead of retrying DNS silently on Activated-On-Demand tunnels, we fail the startTunnel() silently. To summarize, if activate-on-demand is on: - If started from the WireGuard app, show error using lastErrorFile mechanism, suggesting a way to turn off Activate On Demand - If not started from WireGuard app, don't call displayMessage() (don't show error to user) and silently fail starting the tunnel Signed-off-by: Roopesh Chander <roop@roopc.net>
* Added missing param in MockTunnelsEric Kuck2018-12-201-1/+1
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Enabled more swiftlint rulesEric Kuck2018-12-2011-13/+22
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Added a String->[String] helperEric Kuck2018-12-205-32/+53
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* TunnelErrors: Remove unused errorRoopesh Chander2018-12-201-3/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel edit: init() need not take a tunnelConfiguration argumentRoopesh Chander2018-12-192-6/+5
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* NE: Log whether tunnel was activated from the app or notRoopesh Chander2018-12-191-0/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Remove non-helpful commentsRoopesh Chander2018-12-198-13/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel edit: Fix commentRoopesh Chander2018-12-191-1/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: If only Activate On Demand has changed, don't restart tunnelRoopesh Chander2018-12-192-6/+17
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* NE: Handle bad domain names and Activate On DemandRoopesh Chander2018-12-194-19/+59
| | | | | | | | | | | 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. Signed-off-by: Roopesh Chander <roop@roopc.net>
* NE: No need for two startTunnel() methodsRoopesh Chander2018-12-191-5/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Handle waiting on a stale tunnelRoopesh Chander2018-12-191-13/+23
| | | | | | | | | 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. Signed-off-by: Roopesh Chander <roop@roopc.net>
* Remove buttons and text from LaunchScreen.storyboardRoopesh Chander2018-12-181-7/+4
| | | | | | | | 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. Signed-off-by: Roopesh Chander <roop@roopc.net>
* s/Observervation/Observation/g;Roopesh Chander2018-12-182-10/+10
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel detail: Update restorationIdentifier when tunnel name changesRoopesh Chander2018-12-181-0/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Add periods to end the system error messagesRoopesh Chander2018-12-181-6/+6
| | | | | | | Because they can be part of a multi-sentence message when displayed in the alert. Signed-off-by: Roopesh Chander <roop@roopc.net>
* Error handling: Add info on the underlying system error to error alertsRoopesh Chander2018-12-173-69/+105
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Version bump0.0.20181104-7Jason A. Donenfeld2018-12-171-1/+1
| | | | | | This is our first release to the real app store. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Got TunnelsManager back under the max file length by splitting out NEVPNStatus+CustomStringConvertibleEric Kuck2018-12-166-35/+28
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Potential fix for insertRowAtIndexPath crashEric Kuck2018-12-161-0/+2
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Improve mock tunnels generationJason A. Donenfeld2018-12-161-5/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Provide mock tunnels for the SimulatorRoopesh Chander2018-12-163-1/+56
| | | | | | To help in generation of screenshots for the App Store Signed-off-by: Roopesh Chander <roop@roopc.net>
* Nuke duplicate fileJason A. Donenfeld2018-12-151-484/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Version bump0.0.20181104-6Jason A. Donenfeld2018-12-151-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fixed editable KeyValueCells being copyableEric Kuck2018-12-142-4/+1
| | | | | | Fixed DNS servers not saving Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Fix confusing indentationJason A. Donenfeld2018-12-151-3/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* KeyValueCells now share codeEric Kuck2018-12-149-390/+196
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Reorganized project structureEric Kuck2018-12-1418-27/+20
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Most similar views now shared between ViewControllersEric Kuck2018-12-1428-506/+278
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Prettier log time formatJason A. Donenfeld2018-12-151-9/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Simplify logging tagsJason A. Donenfeld2018-12-146-22/+31
| | | | | | | This was roop's initial idea, and it turns out to be the better one, now that we can pass cstrings more easily. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix tunnel remaining in 'Activating' stateRoopesh Chander2018-12-141-1/+19
| | | | | | | | 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. Signed-off-by: Roopesh Chander <roop@roopc.net>
* Fix status switch weird state after an error occursRoopesh Chander2018-12-142-2/+2
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Deduplicate functionsJason A. Donenfeld2018-12-142-10/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Simplify filemanager extensionJason A. Donenfeld2018-12-131-18/+13
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Can't -> cannotJason A. Donenfeld2018-12-132-6/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* NE: Communicate last error to app through a shared fileRoopesh Chander2018-12-144-16/+84
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: startActivation() need not take a tunnelConfigurationRoopesh Chander2018-12-141-11/+3
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Localize swiftlintJason A. Donenfeld2018-12-131-1/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Reorganized ViewControllers (split out UIViews and UITableViewCells into their own classes)Eric Kuck2018-12-1331-719/+1360
| | | | | | All swiftlint warnings except one fixed up Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Avoid escaping heap allocationJason A. Donenfeld2018-12-131-3/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Tidy up str to gostr conversionJason A. Donenfeld2018-12-131-16/+8
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelsManager: Remove mentions of 'internal error'Roopesh Chander2018-12-131-5/+5
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Ask to check Internet connectivity in error alertRoopesh Chander2018-12-131-1/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Remove unused code: InternetReachabilityRoopesh Chander2018-12-132-55/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Remove unused variableRoopesh Chander2018-12-131-4/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>