aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-12-22TunnelErrors: Add alert text for PacketTunnelProviderErrorRoopesh Chander2-13/+21
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-22TunnelStatus: Absorb NEVPNStatus+CustomStringConvertibleRoopesh Chander3-22/+13
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-22Also refresh statusJason A. Donenfeld1-1/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-22Reassign tunnelProvider if it changes from outside the appJason A. Donenfeld1-2/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21All models now EquatableEric Kuck10-1/+100
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-22Clean up trailing whitespaceJason A. Donenfeld4-12/+12
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-22Do not crash if we can't get socket.fileDescriptorJason A. Donenfeld1-1/+1
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21Removing a tunnel from iOS's settings is now immediately reflected in appEric Kuck6-52/+72
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-22Localize remaining strings in network extensionJason A. Donenfeld5-40/+42
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21RTL supportEric Kuck4-15/+15
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-21Strongly recommended now appears as placeholder for DNS when neededEric Kuck1-19/+29
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-22Combine double log invocationsJason A. Donenfeld2-7/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-22Bump go bridgeJason A. Donenfeld1-0/+0
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-22Attempt to strongly recommend thingsJason A. Donenfeld3-6/+12
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-22Move model helpers to model directoryJason A. Donenfeld5-6/+4
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21Fixes mock tunnelsEric Kuck1-3/+3
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-22Do not set copyable back to true on reuseJason A. Donenfeld1-0/+5
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-22Move name from interface to tunnelJason A. Donenfeld13-35/+41
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21Fix paren typoJason A. Donenfeld2-3/+3
"I am very anti-paren." --Eric Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21Nuke trailing spacesJason A. Donenfeld26-173/+173
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21providerConfiguration is now a WgQuickConfigEric Kuck19-315/+109
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-21Do not require NetworkExtension to know its own nameJason A. Donenfeld4-27/+18
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21All migration stuff moved to one gross fileEric Kuck9-299/+202
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-21Simplify versioning of stored dataJason A. Donenfeld1-26/+10
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21Get rid of superflous isActivateOnDemandEnabled keyJason A. Donenfeld7-54/+19
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21Updated NETunnelProvider save formatEric Kuck23-223/+663
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-12-21NE: simplify logicJason A. Donenfeld2-46/+27
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21NE: Simplify DNS resolutionRoopesh Chander2-23/+6
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-21Localize all the thingsRoopesh Chander13-135/+408
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-12-21Tunnel detail: iPad: Handle deletion of tunnel correctlyRoopesh Chander1-3/+10
Signed-off-by: Roopesh Chander <roop@roopc.net>
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>