]>
git.ipfire.org Git - thirdparty/wireguard-apple.git/log
Roopesh Chander [Mon, 5 Nov 2018 17:25:09 +0000 (22:55 +0530)]
Tunnel view model: No need to save if we already have a validated configuration object
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Mon, 5 Nov 2018 05:31:25 +0000 (06:31 +0100)]
global: convert to Swift 4.2
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Mon, 5 Nov 2018 05:23:26 +0000 (06:23 +0100)]
TunnelsManager: account for no or many endpoints
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Mon, 5 Nov 2018 03:30:32 +0000 (04:30 +0100)]
wireguard-go-bridge: work around DWARF generation issue
Golang bug 25148 upstream.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Mon, 5 Nov 2018 02:10:52 +0000 (03:10 +0100)]
PacketTunnelProvider: clamp v6 addresses to /120
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Mon, 5 Nov 2018 01:09:40 +0000 (02:09 +0100)]
Settings: account for bottom padding on iPhone X
Reported-by: Jeffrey A. Donenfeld <jad@runblue.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sun, 4 Nov 2018 03:16:13 +0000 (04:16 +0100)]
XCode: use old network extension ID
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sun, 4 Nov 2018 02:55:14 +0000 (03:55 +0100)]
wireguard-go-bridge: xcode expects install target
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sun, 4 Nov 2018 02:51:50 +0000 (03:51 +0100)]
XCode: unify version strings
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sun, 4 Nov 2018 02:37:09 +0000 (03:37 +0100)]
Settings: anchor logo to bottom
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Sat, 3 Nov 2018 21:01:04 +0000 (02:31 +0530)]
Add a correct launch-screen storyboard
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Sat, 3 Nov 2018 18:53:04 +0000 (19:53 +0100)]
Revert "Settings: Swap table view sections"
This reverts commit
1108f8248946f80d29012d8d43658db8461c0fed .
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 3 Nov 2018 18:48:10 +0000 (19:48 +0100)]
Settings: simplify
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 3 Nov 2018 18:35:25 +0000 (19:35 +0100)]
Global: run through swiftlint
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 3 Nov 2018 18:12:04 +0000 (19:12 +0100)]
Settings: limit size of logo
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 3 Nov 2018 17:37:51 +0000 (18:37 +0100)]
Settings: use updated wireguard banner logo
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 3 Nov 2018 16:23:03 +0000 (17:23 +0100)]
TunnelsManager: restore sanity
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Sat, 3 Nov 2018 13:58:29 +0000 (19:28 +0530)]
Change version with 0.0.yyyymmdd versioning scheme
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 13:50:00 +0000 (19:20 +0530)]
VPN: Make sure actions inside tunnelProvider completion handlers are done in the main queue
They should really already be in the main queue, but we do this just in case.
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 13:33:27 +0000 (19:03 +0530)]
VPN: Start observing the status only if startTunnel() succeeds
This should fix the status change to .disconnected when we're resolving endpoints
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 13:28:24 +0000 (18:58 +0530)]
VPN: We should never get a status change to .disconnected if we're resolving endpoints
But we do, which we'll fix subsequently
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 13:15:26 +0000 (18:45 +0530)]
Revert "TunnelsManager: initialize observer on correct thread"
Rather, we'll make sure we always call startObservingTunnelStatus from
the main thread.
This reverts commit
d16a6a167c8217e81dd9111d1ad9e4ec6429ef3b .
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 13:11:54 +0000 (18:41 +0530)]
Settings: Show the captioned WireGuard logo at the end
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 12:23:50 +0000 (17:53 +0530)]
Settings: Swap table view sections
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 12:09:43 +0000 (17:39 +0530)]
Remove empty image
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jeroen Leenarts [Tue, 2 Oct 2018 19:14:47 +0000 (21:14 +0200)]
Add Wireguard logo with caption to project
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Sat, 3 Nov 2018 11:58:16 +0000 (17:28 +0530)]
Tunnels list: Fix status switch look after flipping it off after an error
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 11:56:06 +0000 (17:26 +0530)]
ErrorPresenter: showErrorAlert takes an onPresentated handler
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 10:24:02 +0000 (15:54 +0530)]
Tunnels list: Should deselect the row when handling the selection
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 10:21:21 +0000 (15:51 +0530)]
Tunnel list: Don't show the detail view after creating a config from scratch
So it's consistent with the other two "Add a configuration" menu items
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 10:15:29 +0000 (15:45 +0530)]
Ensure that all tunnel names are trimmed of whitespaces
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 10:07:31 +0000 (15:37 +0530)]
Zip archive: Handle files within folders inside the zip
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Sat, 3 Nov 2018 06:21:54 +0000 (07:21 +0100)]
Update readme
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 3 Nov 2018 06:03:09 +0000 (07:03 +0100)]
TunnelsManager: initialize observer on correct thread
Because of the callback recursion, this function needs to always be called from the right thread
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 3 Nov 2018 05:22:57 +0000 (06:22 +0100)]
TunnelsManager: do not track currentTunnel
It's error prone and does not give us anything.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 3 Nov 2018 05:09:07 +0000 (06:09 +0100)]
TunnelsManager: do not change back to inactive if we are resolving the endpoint
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Sat, 3 Nov 2018 04:55:32 +0000 (10:25 +0530)]
Tunnels list: Remove separator lines in the table view
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 04:52:05 +0000 (10:22 +0530)]
Tunnels list: Show an 'Add' button when there are no tunnels
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Sat, 3 Nov 2018 03:20:27 +0000 (08:50 +0530)]
Tunnels list: Show a busy indicator before the tunnels are loaded
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 18:55:35 +0000 (00:25 +0530)]
Tunnels list: The Add and Settings buttons should be no-ops until the tunnels are loaded
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 18:54:53 +0000 (00:24 +0530)]
Tunnel edit: Use layoutMarginsGuide instead of constants
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Sat, 3 Nov 2018 03:37:56 +0000 (04:37 +0100)]
TunnelsManager: fix use of arrayslice in addMultiple
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 3 Nov 2018 02:53:08 +0000 (03:53 +0100)]
TunnelsManager: get rid of name set
Instead, tunnels itself should be a sorted-set. For now it's a list,
which is probably fine though.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 3 Nov 2018 02:40:23 +0000 (03:40 +0100)]
TunnelsManager: get rid of index management
No need for premature optimization. There aren't that many tunnels most
of the time, and calling sort on a partially sorted array is fast.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 3 Nov 2018 01:55:19 +0000 (02:55 +0100)]
Global: no periods at the end of error messages
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Sat, 3 Nov 2018 01:51:32 +0000 (02:51 +0100)]
Import: rework addMultiple logic
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Fri, 2 Nov 2018 14:00:00 +0000 (19:30 +0530)]
Tunnel detail: In the key-value cell, make the value label scrollable horizontally
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 12:50:32 +0000 (18:20 +0530)]
Tunnel edit: Ensure all key-value fields have a placeholder text
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 12:40:51 +0000 (18:10 +0530)]
DNSResolver: Bugfix: Always call completion handler
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 12:02:13 +0000 (17:32 +0530)]
Info.plist: Update document icons and description
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 11:56:43 +0000 (17:26 +0530)]
Info.plist: Document type UTI should be consistent with exported UTI
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 11:34:13 +0000 (17:04 +0530)]
Info.plist: Register zip file for open-in
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 11:27:30 +0000 (16:57 +0530)]
Info.plist: Add .conf extension to document type
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 11:14:18 +0000 (16:44 +0530)]
Add document icon
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 10:41:24 +0000 (16:11 +0530)]
Add app icons
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 10:09:03 +0000 (15:39 +0530)]
Remove files we don't need
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 07:54:10 +0000 (13:24 +0530)]
Handle cell reuse in showing delete buttons in red
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 07:42:10 +0000 (13:12 +0530)]
Table edit: Show/hide 'Exclude Private IPs' instead of enable/disable
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 07:39:45 +0000 (13:09 +0530)]
Tunnel view model: If there's just one peer, populate the scratchpad on init
So that exclude private IPs can be computed correctly.
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Fri, 2 Nov 2018 06:35:40 +0000 (12:05 +0530)]
Tunnel view model: Initialize peerData.numberOfPeers
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Fri, 2 Nov 2018 04:34:17 +0000 (05:34 +0100)]
DNSResolver: getaddrinfo returns a sockaddr and inet_ntop takes strlen
The way this was written before was totally wrong.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Thu, 1 Nov 2018 22:39:06 +0000 (23:39 +0100)]
wireguard-go-bridge: use boottime instead of monotonic
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Thu, 1 Nov 2018 21:01:52 +0000 (22:01 +0100)]
NetworkExtension: check isTunnelClosed before packet existence
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Thu, 1 Nov 2018 20:22:12 +0000 (21:22 +0100)]
Global: OK over Ok
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Thu, 1 Nov 2018 18:23:09 +0000 (23:53 +0530)]
Deletion buttons are shown in red
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 1 Nov 2018 18:15:29 +0000 (23:45 +0530)]
Tunnel edit: Highlight erroring field keys in red
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 1 Nov 2018 17:34:56 +0000 (23:04 +0530)]
Tunnels list: Swipe left to delete
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Thu, 1 Nov 2018 17:59:58 +0000 (18:59 +0100)]
Global: fix up strings
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Thu, 1 Nov 2018 13:29:14 +0000 (18:59 +0530)]
QR code: Fix what happens when an error is shown
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 1 Nov 2018 13:24:08 +0000 (18:54 +0530)]
NE: Show an alert when someone tries to start the VPN from iOS Settings
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Thu, 1 Nov 2018 16:31:50 +0000 (17:31 +0100)]
Export: fix up export format
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Thu, 1 Nov 2018 11:28:33 +0000 (16:58 +0530)]
Tunnel errors: Consolidate tunnel activation errors into ErrorPresenter
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 1 Nov 2018 11:27:40 +0000 (16:57 +0530)]
TunnelsManager: Better errors
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 1 Nov 2018 10:43:30 +0000 (16:13 +0530)]
ConfigFile: WgQuickConfigFileWriter: Fix '[Peer]' section header
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 1 Nov 2018 10:29:17 +0000 (15:59 +0530)]
Importing: Account for errors in showing the 'No configurations found' error
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 1 Nov 2018 10:24:37 +0000 (15:54 +0530)]
Tunnel detail: Fix deletion of tunnel
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 1 Nov 2018 10:23:10 +0000 (15:53 +0530)]
VPN: TunnelsManager: Fix deletion code
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 1 Nov 2018 10:06:59 +0000 (15:36 +0530)]
VPN: Restart tunnel after modifying a currently active configuration
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 31 Oct 2018 20:44:30 +0000 (02:14 +0530)]
QR code: Degrade gracefully when running on the simulator or on a device without a camera
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 31 Oct 2018 20:35:03 +0000 (02:05 +0530)]
Revert "QR code: QR code scanning is not available in the simulator"
This reverts commit
9729386406cd9543303a68e51d57b286880bb8cd .
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 31 Oct 2018 20:34:26 +0000 (02:04 +0530)]
Importing: Show error when the zip file contains no .conf files
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 31 Oct 2018 20:24:19 +0000 (01:54 +0530)]
VPN: We have to start observing the tunnelContainer before we attempt to activate it
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 31 Oct 2018 20:12:29 +0000 (01:42 +0530)]
Importing: Error out on duplicate name
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 31 Oct 2018 20:06:28 +0000 (01:36 +0530)]
QR Code: Error out on duplicate name
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 31 Oct 2018 19:15:09 +0000 (00:45 +0530)]
Tunnel edit: Error out on duplicate name when creating / modifying a tunnel
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 1 Nov 2018 06:15:09 +0000 (11:45 +0530)]
VPN: An ErrorPresenter class to consolidate showing of error alerts
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Thu, 1 Nov 2018 06:12:32 +0000 (11:42 +0530)]
VPN: Introduce an error enum for adding/modifying/removing tunnels
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 31 Oct 2018 18:07:46 +0000 (23:37 +0530)]
VPN: TunnelsManager: s/TunnelsManagerError/TunnelActivationError/g;
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 31 Oct 2018 11:33:32 +0000 (17:03 +0530)]
VPN: TunnelsManager should keep track of tunnel names to prevent duplicate names
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Wed, 31 Oct 2018 15:38:05 +0000 (16:38 +0100)]
UI: not all subclasses of CopyableLabelTableViewCell have a detailTextLabel, so generalize
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Wed, 31 Oct 2018 14:58:03 +0000 (15:58 +0100)]
TunnelManager: bound recursion in startActivation
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Roopesh Chander [Wed, 31 Oct 2018 11:12:29 +0000 (16:42 +0530)]
VPN: Retry startTunnel based on error conditions
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 31 Oct 2018 09:00:25 +0000 (14:30 +0530)]
Tunnel list: Fix importing zip with multiple configurations
Signed-off-by: Roopesh Chander <roop@roopc.net>
Roopesh Chander [Wed, 31 Oct 2018 08:59:54 +0000 (14:29 +0530)]
VPN: Support adding multiple configurations in one shot
Signed-off-by: Roopesh Chander <roop@roopc.net>
Jason A. Donenfeld [Wed, 31 Oct 2018 03:02:36 +0000 (04:02 +0100)]
wireguard-go-bridge: extract version for consumption by network extension
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Wed, 31 Oct 2018 02:13:00 +0000 (03:13 +0100)]
wireguard-go-bridge: simplify logging and remove tags
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Wed, 31 Oct 2018 02:03:00 +0000 (03:03 +0100)]
NetworkExtension: close context before turning off go
The go turnOff code waits for all readers to have completed. In order to
make readers complete, we must send the signal to unblock the request.
Thus, we must reorder these.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Wed, 31 Oct 2018 01:49:59 +0000 (02:49 +0100)]
wireguard-go-bridge: handle errors in makefile
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Wed, 31 Oct 2018 00:00:27 +0000 (01:00 +0100)]
UI: More elegant copy-to-clipboard behavior
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Jason A. Donenfeld [Tue, 30 Oct 2018 21:51:05 +0000 (22:51 +0100)]
wireguard-go: pull in recent change
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>