aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/.swiftlint.yml (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-12-21NE: Update listen port only when first interface changesRoopesh Chander2-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>
2018-12-21NE: Change handling of bad domain names and Activate On DemandRoopesh Chander2-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>
2018-12-20Added missing param in MockTunnelsEric Kuck1-1/+1
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-20wireguard-go-bridge: SDK_DIR is not defined for simulatorJason A. Donenfeld1-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-20Enabled more swiftlint rulesEric Kuck11-13/+22
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-20Added a String->[String] helperEric Kuck5-32/+53
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-20TunnelErrors: Remove unused errorRoopesh Chander1-3/+0
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-19Tunnel edit: init() need not take a tunnelConfiguration argumentRoopesh Chander2-6/+5
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-19NE: Log whether tunnel was activated from the app or notRoopesh Chander1-0/+6
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-19Remove non-helpful commentsRoopesh Chander8-13/+0
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-19Tunnel edit: Fix commentRoopesh Chander1-1/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-19TunnelsManager: If only Activate On Demand has changed, don't restart tunnelRoopesh Chander2-6/+17
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-19NE: Handle bad domain names and Activate On DemandRoopesh Chander4-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>
2018-12-19NE: No need for two startTunnel() methodsRoopesh Chander1-5/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-19TunnelsManager: Handle waiting on a stale tunnelRoopesh Chander1-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>
2018-12-18Remove buttons and text from LaunchScreen.storyboardRoopesh Chander1-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>
2018-12-18s/Observervation/Observation/g;Roopesh Chander2-10/+10
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-18Tunnel detail: Update restorationIdentifier when tunnel name changesRoopesh Chander1-0/+1
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-18TunnelsManager: Add periods to end the system error messagesRoopesh Chander1-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>
2018-12-17Error handling: Add info on the underlying system error to error alertsRoopesh Chander3-69/+105
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-17Version bump0.0.20181104-7Jason A. Donenfeld1-1/+1
This is our first release to the real app store. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-16Got TunnelsManager back under the max file length by splitting out NEVPNStatus+CustomStringConvertibleEric Kuck6-35/+28
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-16Potential fix for insertRowAtIndexPath crashEric Kuck1-0/+2
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-17More proper way to get sdk root directoryJason A. Donenfeld1-2/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-16Further generalize makefileJason A. Donenfeld2-71/+19
This should allow us to eventually build on macOS Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-16Bump the go runtimeJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-16Improve mock tunnels generationJason A. Donenfeld1-5/+10
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-16Provide mock tunnels for the SimulatorRoopesh Chander3-1/+56
To help in generation of screenshots for the App Store Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-15Nuke duplicate fileJason A. Donenfeld1-484/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-15Bump the go runtimeJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-15Version bump0.0.20181104-6Jason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-14Fixed editable KeyValueCells being copyableEric Kuck2-4/+1
Fixed DNS servers not saving Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-15Fix confusing indentationJason A. Donenfeld1-3/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-14KeyValueCells now share codeEric Kuck9-390/+196
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-14Reorganized project structureEric Kuck18-27/+20
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-14Most similar views now shared between ViewControllersEric Kuck28-506/+278
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-15Prettier log time formatJason A. Donenfeld1-9/+19
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-14Simplify logging tagsJason A. Donenfeld6-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>
2018-12-14Fix tunnel remaining in 'Activating' stateRoopesh Chander1-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>
2018-12-14Fix status switch weird state after an error occursRoopesh Chander2-2/+2
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-14Deduplicate functionsJason A. Donenfeld2-10/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-13Simplify filemanager extensionJason A. Donenfeld1-18/+13
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-13Can't -> cannotJason A. Donenfeld2-6/+6
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-14NE: Communicate last error to app through a shared fileRoopesh Chander4-16/+84
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-14TunnelsManager: startActivation() need not take a tunnelConfigurationRoopesh Chander1-11/+3
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-13Localize swiftlintJason A. Donenfeld1-1/+2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-13Reorganized ViewControllers (split out UIViews and UITableViewCells into their own classes)Eric Kuck31-719/+1360
All swiftlint warnings except one fixed up Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-13Avoid escaping heap allocationJason A. Donenfeld1-3/+3
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-13Tidy up str to gostr conversionJason A. Donenfeld1-16/+8
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-13TunnelsManager: Remove mentions of 'internal error'Roopesh Chander1-5/+5
Signed-off-by: Roopesh Chander <roop@roopc.net>