aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuardNetworkExtension/ErrorNotifier.swift (follow)
Commit message (Collapse)AuthorAgeFilesLines
* NE: Change handling of bad domain names and Activate On DemandRoopesh Chander2018-12-211-12/+14
| | | | | | | | | | | | | | | | 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>
* NE: Handle bad domain names and Activate On DemandRoopesh Chander2018-12-191-2/+6
| | | | | | | | | | | 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: Communicate last error to app through a shared fileRoopesh Chander2018-12-141-5/+30
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* More linter warnings fixed, enabled more swiftlint rules, project cleanupEric Kuck2018-12-121-1/+1
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Tons more swiftlint warnings fixed. Still a few remaining.Eric Kuck2018-12-121-1/+1
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Added swiftlint and fixed all errors (and a bunch, but not all, warnings)Eric Kuck2018-12-121-1/+1
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* NE: When there's an error starting the tunnel, show it to the user using displayMessage()Roopesh Chander2018-11-091-0/+25
Signed-off-by: Roopesh Chander <roop@roopc.net>