]>
git.ipfire.org Git - thirdparty/wireguard-apple.git/log
Eric Kuck [Sat, 22 Dec 2018 20:32:39 +0000 (14:32 -0600)]
Fix typo for simulator builds
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Roopesh Chander [Sat, 22 Dec 2018 19:01:20 +0000 (00:31 +0530)]
Remove more comments
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Sat, 22 Dec 2018 17:29:05 +0000 (18:29 +0100)]
Rely on availability of fd only after setting network settings
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 22 Dec 2018 16:38:25 +0000 (17:38 +0100)]
Bump to latest wireguard-go release
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 22 Dec 2018 14:45:09 +0000 (15:45 +0100)]
Retain aggressive socket reestablishment for now
This can be reverted once we've done more testing.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Sat, 22 Dec 2018 10:43:31 +0000 (16:13 +0530)]
Don't set username on NETunnelProviderProtocol
The username corresponds to the Account field in iOS system VPN UI,
but if we don't set it, the field is not shown, so setting it isn't
really required.
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 22 Dec 2018 10:35:35 +0000 (16:05 +0530)]
TunnelErrors: Add alert text for PacketTunnelProviderError
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 22 Dec 2018 10:16:28 +0000 (15:46 +0530)]
TunnelStatus: Absorb NEVPNStatus+CustomStringConvertible
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Sat, 22 Dec 2018 06:07:53 +0000 (07:07 +0100)]
Also refresh status
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 22 Dec 2018 05:56:12 +0000 (06:56 +0100)]
Reassign tunnelProvider if it changes from outside the app
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Sat, 22 Dec 2018 04:41:54 +0000 (22:41 -0600)]
All models now Equatable
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Jason A. Donenfeld [Sat, 22 Dec 2018 04:30:35 +0000 (05:30 +0100)]
Clean up trailing whitespace
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 22 Dec 2018 04:12:53 +0000 (05:12 +0100)]
Do not crash if we can't get socket.fileDescriptor
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Sat, 22 Dec 2018 03:59:43 +0000 (21:59 -0600)]
Removing a tunnel from iOS's settings is now immediately reflected in app
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Jason A. Donenfeld [Sat, 22 Dec 2018 02:41:54 +0000 (03:41 +0100)]
Localize remaining strings in network extension
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Sat, 22 Dec 2018 02:37:22 +0000 (20:37 -0600)]
RTL support
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Eric Kuck [Sat, 22 Dec 2018 01:52:51 +0000 (19:52 -0600)]
Strongly recommended now appears as placeholder for DNS when needed
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Jason A. Donenfeld [Sat, 22 Dec 2018 01:21:07 +0000 (02:21 +0100)]
Combine double log invocations
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 22 Dec 2018 00:58:02 +0000 (01:58 +0100)]
Bump go bridge
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 22 Dec 2018 00:55:42 +0000 (01:55 +0100)]
Attempt to strongly recommend things
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 22 Dec 2018 00:36:33 +0000 (01:36 +0100)]
Move model helpers to model directory
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Sat, 22 Dec 2018 00:35:01 +0000 (18:35 -0600)]
Fixes mock tunnels
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Jason A. Donenfeld [Sat, 22 Dec 2018 00:31:59 +0000 (01:31 +0100)]
Do not set copyable back to true on reuse
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Fri, 21 Dec 2018 23:28:18 +0000 (00:28 +0100)]
Move name from interface to tunnel
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Fri, 21 Dec 2018 22:43:11 +0000 (23:43 +0100)]
Fix paren typo
"I am very anti-paren." --Eric
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Fri, 21 Dec 2018 22:34:56 +0000 (23:34 +0100)]
Nuke trailing spaces
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Fri, 21 Dec 2018 21:16:09 +0000 (15:16 -0600)]
providerConfiguration is now a WgQuickConfig
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Jason A. Donenfeld [Fri, 21 Dec 2018 21:05:47 +0000 (22:05 +0100)]
Do not require NetworkExtension to know its own name
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Fri, 21 Dec 2018 18:51:14 +0000 (12:51 -0600)]
All migration stuff moved to one gross file
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Jason A. Donenfeld [Fri, 21 Dec 2018 17:58:06 +0000 (18:58 +0100)]
Simplify versioning of stored data
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Fri, 21 Dec 2018 17:50:32 +0000 (18:50 +0100)]
Get rid of superflous isActivateOnDemandEnabled key
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Fri, 21 Dec 2018 04:52:45 +0000 (22:52 -0600)]
Updated NETunnelProvider save format
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Jason A. Donenfeld [Fri, 21 Dec 2018 14:56:03 +0000 (15:56 +0100)]
NE: simplify logic
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Fri, 21 Dec 2018 13:53:16 +0000 (19:23 +0530)]
NE: Simplify DNS resolution
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Tue, 18 Dec 2018 11:00:16 +0000 (16:30 +0530)]
Localize all the things
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 21 Dec 2018 12:32:18 +0000 (18:02 +0530)]
Tunnel detail: iPad: Handle deletion of tunnel correctly
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 21 Dec 2018 12:02:44 +0000 (17:32 +0530)]
NE: Update listen port only when first interface changes
When handling network path changes, change the listen port
only when the first interface has changed.
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 21 Dec 2018 10:10:04 +0000 (15:40 +0530)]
NE: Change handling of bad domain names and Activate On Demand
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>
Eric Kuck [Thu, 20 Dec 2018 19:51:44 +0000 (13:51 -0600)]
Added missing param in MockTunnels
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Jason A. Donenfeld [Thu, 20 Dec 2018 19:47:42 +0000 (20:47 +0100)]
wireguard-go-bridge: SDK_DIR is not defined for simulator
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Thu, 20 Dec 2018 17:22:37 +0000 (11:22 -0600)]
Enabled more swiftlint rules
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Eric Kuck [Thu, 20 Dec 2018 16:46:26 +0000 (10:46 -0600)]
Added a String->[String] helper
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Roopesh Chander [Thu, 20 Dec 2018 12:57:56 +0000 (18:27 +0530)]
TunnelErrors: Remove unused error
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 19 Dec 2018 11:00:34 +0000 (16:30 +0530)]
Tunnel edit: init() need not take a tunnelConfiguration argument
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 19 Dec 2018 10:56:28 +0000 (16:26 +0530)]
NE: Log whether tunnel was activated from the app or not
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 19 Dec 2018 10:53:29 +0000 (16:23 +0530)]
Remove non-helpful comments
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 19 Dec 2018 10:53:14 +0000 (16:23 +0530)]
Tunnel edit: Fix comment
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 19 Dec 2018 10:32:48 +0000 (16:02 +0530)]
TunnelsManager: If only Activate On Demand has changed, don't restart tunnel
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 19 Dec 2018 10:08:00 +0000 (15:38 +0530)]
NE: Handle bad domain names and Activate On Demand
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>
Roopesh Chander [Wed, 19 Dec 2018 07:40:42 +0000 (13:10 +0530)]
NE: No need for two startTunnel() methods
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Tue, 18 Dec 2018 14:15:00 +0000 (19:45 +0530)]
TunnelsManager: Handle waiting on a stale tunnel
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>
Roopesh Chander [Tue, 18 Dec 2018 14:33:27 +0000 (20:03 +0530)]
Remove buttons and text from LaunchScreen.storyboard
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>
Roopesh Chander [Tue, 18 Dec 2018 14:30:01 +0000 (20:00 +0530)]
s/Observervation/Observation/g;
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Tue, 18 Dec 2018 13:57:27 +0000 (19:27 +0530)]
Tunnel detail: Update restorationIdentifier when tunnel name changes
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Tue, 18 Dec 2018 10:17:17 +0000 (15:47 +0530)]
TunnelsManager: Add periods to end the system error messages
Because they can be part of a multi-sentence message when displayed
in the alert.
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Mon, 17 Dec 2018 13:26:26 +0000 (18:56 +0530)]
Error handling: Add info on the underlying system error to error alerts
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Mon, 17 Dec 2018 13:08:17 +0000 (14:08 +0100)]
Version bump
This is our first release to the real app store.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Mon, 17 Dec 2018 05:51:25 +0000 (23:51 -0600)]
Got TunnelsManager back under the max file length by splitting out NEVPNStatus+CustomStringConvertible
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Eric Kuck [Mon, 17 Dec 2018 03:11:33 +0000 (21:11 -0600)]
Potential fix for insertRowAtIndexPath crash
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Jason A. Donenfeld [Sun, 16 Dec 2018 23:23:11 +0000 (00:23 +0100)]
More proper way to get sdk root directory
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sun, 16 Dec 2018 02:47:05 +0000 (03:47 +0100)]
Further generalize makefile
This should allow us to eventually build on macOS
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sun, 16 Dec 2018 00:55:00 +0000 (01:55 +0100)]
Bump the go runtime
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sun, 16 Dec 2018 00:51:14 +0000 (01:51 +0100)]
Improve mock tunnels generation
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Sat, 15 Dec 2018 19:41:23 +0000 (01:11 +0530)]
Provide mock tunnels for the Simulator
To help in generation of screenshots for the App Store
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Sat, 15 Dec 2018 05:21:49 +0000 (06:21 +0100)]
Nuke duplicate file
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 15 Dec 2018 05:13:33 +0000 (06:13 +0100)]
Bump the go runtime
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 15 Dec 2018 04:08:31 +0000 (05:08 +0100)]
Version bump
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Sat, 15 Dec 2018 03:48:48 +0000 (21:48 -0600)]
Fixed editable KeyValueCells being copyable
Fixed DNS servers not saving
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Jason A. Donenfeld [Sat, 15 Dec 2018 03:42:11 +0000 (04:42 +0100)]
Fix confusing indentation
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Sat, 15 Dec 2018 02:02:37 +0000 (20:02 -0600)]
KeyValueCells now share code
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Eric Kuck [Fri, 14 Dec 2018 23:27:11 +0000 (17:27 -0600)]
Reorganized project structure
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Eric Kuck [Fri, 14 Dec 2018 23:12:59 +0000 (17:12 -0600)]
Most similar views now shared between ViewControllers
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Jason A. Donenfeld [Fri, 14 Dec 2018 23:08:54 +0000 (00:08 +0100)]
Prettier log time format
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Fri, 14 Dec 2018 21:53:42 +0000 (22:53 +0100)]
Simplify logging tags
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>
Roopesh Chander [Fri, 14 Dec 2018 12:03:52 +0000 (17:33 +0530)]
Fix tunnel remaining in 'Activating' state
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>
Roopesh Chander [Fri, 14 Dec 2018 11:03:31 +0000 (16:33 +0530)]
Fix status switch weird state after an error occurs
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Thu, 13 Dec 2018 23:01:50 +0000 (00:01 +0100)]
Deduplicate functions
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Thu, 13 Dec 2018 22:25:18 +0000 (23:25 +0100)]
Simplify filemanager extension
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Thu, 13 Dec 2018 22:17:05 +0000 (23:17 +0100)]
Can't -> cannot
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Thu, 13 Dec 2018 20:54:53 +0000 (02:24 +0530)]
NE: Communicate last error to app through a shared file
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 13 Dec 2018 18:31:41 +0000 (00:01 +0530)]
TunnelsManager: startActivation() need not take a tunnelConfiguration
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Thu, 13 Dec 2018 19:06:37 +0000 (20:06 +0100)]
Localize swiftlint
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Thu, 13 Dec 2018 18:58:50 +0000 (12:58 -0600)]
Reorganized ViewControllers (split out UIViews and UITableViewCells into their own classes)
All swiftlint warnings except one fixed up
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Jason A. Donenfeld [Thu, 13 Dec 2018 18:43:12 +0000 (19:43 +0100)]
Avoid escaping heap allocation
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Thu, 13 Dec 2018 18:36:43 +0000 (19:36 +0100)]
Tidy up str to gostr conversion
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Thu, 13 Dec 2018 18:23:17 +0000 (23:53 +0530)]
TunnelsManager: Remove mentions of 'internal error'
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 13 Dec 2018 18:17:12 +0000 (23:47 +0530)]
TunnelsManager: Ask to check Internet connectivity in error alert
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 13 Dec 2018 18:15:21 +0000 (23:45 +0530)]
Remove unused code: InternetReachability
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 13 Dec 2018 18:14:13 +0000 (23:44 +0530)]
TunnelsManager: Remove unused variable
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 13 Dec 2018 18:12:50 +0000 (23:42 +0530)]
TunnelsManager: Remove assert
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Thu, 13 Dec 2018 18:02:48 +0000 (19:02 +0100)]
Simplify C strings
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Thu, 13 Dec 2018 18:04:00 +0000 (23:34 +0530)]
TunnelsManager: Fix race between multiple startActivation() calls
After startActivate() is called on a waiting tunnel, user might turn
on a different tunnel before the waiting tunnel's status gets updated.
This fix prevents that from happening.
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 13 Dec 2018 17:43:54 +0000 (23:13 +0530)]
TunnelsManager: Reintroduce waiting for another tunnel to deactivate
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Thu, 13 Dec 2018 14:26:04 +0000 (15:26 +0100)]
Rewrite Logger
This reverts all of Roop's changes to the C code, and then rewrites the
logger logic to be cleaner.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Eric Kuck [Thu, 13 Dec 2018 15:30:13 +0000 (09:30 -0600)]
More reliable logo sizing
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
Roopesh Chander [Thu, 13 Dec 2018 13:25:20 +0000 (18:55 +0530)]
TunnelsManager: Report activation errors through the activationDelegate
Don't report activation errors through completion handlers
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 13 Dec 2018 12:39:38 +0000 (18:09 +0530)]
Logging: Write versions from both app and extension
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 13 Dec 2018 12:36:57 +0000 (18:06 +0530)]
Logging: file_log doesn't need the message type
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 13 Dec 2018 12:30:29 +0000 (18:00 +0530)]
Logging: Tag the entries in the merged log
So we know which entry is from the app and which is from the network
extension.
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 13 Dec 2018 12:00:02 +0000 (17:30 +0530)]
Logging: Use ringlogger for logging from the app
Signed-off-by: Roopesh Chander <roop@roopc.net>