Jason A. Donenfeld
6676e557f1
wireguard-go-bridge: use boottime instead of monotonic
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-01 23:39:06 +01:00
Jason A. Donenfeld
b21de2e398
NetworkExtension: check isTunnelClosed before packet existence
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-01 22:01:52 +01:00
Jason A. Donenfeld
cf569fd0d2
Global: OK over Ok
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-01 21:22:12 +01:00
Roopesh Chander
abd02975c5
Deletion buttons are shown in red
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 23:53:09 +05:30
Roopesh Chander
46e9eddecc
Tunnel edit: Highlight erroring field keys in red
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 23:45:48 +05:30
Roopesh Chander
55cf6e6181
Tunnels list: Swipe left to delete
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 23:45:48 +05:30
Jason A. Donenfeld
c2d76b9c45
Global: fix up strings
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-01 19:01:43 +01:00
Roopesh Chander
196daccdde
QR code: Fix what happens when an error is shown
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 22:08:01 +05:30
Roopesh Chander
7608cebbc6
NE: Show an alert when someone tries to start the VPN from iOS Settings
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 22:08:01 +05:30
Jason A. Donenfeld
c5e35fee1e
Export: fix up export format
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-01 17:31:50 +01:00
Roopesh Chander
3611f8cf5a
Tunnel errors: Consolidate tunnel activation errors into ErrorPresenter
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 16:58:33 +05:30
Roopesh Chander
39a457e402
TunnelsManager: Better errors
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 16:57:40 +05:30
Roopesh Chander
53a93e9b92
ConfigFile: WgQuickConfigFileWriter: Fix '[Peer]' section header
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 16:13:30 +05:30
Roopesh Chander
1377153bc6
Importing: Account for errors in showing the 'No configurations found' error
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 15:59:17 +05:30
Roopesh Chander
5138cdf9ea
Tunnel detail: Fix deletion of tunnel
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 15:54:37 +05:30
Roopesh Chander
040ce32015
VPN: TunnelsManager: Fix deletion code
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 15:53:10 +05:30
Roopesh Chander
2870175ab2
VPN: Restart tunnel after modifying a currently active configuration
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 15:36:59 +05:30
Roopesh Chander
b96e5ae563
QR code: Degrade gracefully when running on the simulator or on a device without a camera
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 11:45:44 +05:30
Roopesh Chander
95ad752d65
Revert "QR code: QR code scanning is not available in the simulator"
...
This reverts commit 9729386406
.
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 11:45:44 +05:30
Roopesh Chander
193b8c2596
Importing: Show error when the zip file contains no .conf files
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 11:45:44 +05:30
Roopesh Chander
cf7966e876
VPN: We have to start observing the tunnelContainer before we attempt to activate it
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 11:45:44 +05:30
Roopesh Chander
066449b207
Importing: Error out on duplicate name
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 11:45:44 +05:30
Roopesh Chander
bede8a17ad
QR Code: Error out on duplicate name
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 11:45:44 +05:30
Roopesh Chander
050f8aa679
Tunnel edit: Error out on duplicate name when creating / modifying a tunnel
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 11:45:44 +05:30
Roopesh Chander
bd1820e9f5
VPN: An ErrorPresenter class to consolidate showing of error alerts
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 11:45:44 +05:30
Roopesh Chander
92d3de1b0d
VPN: Introduce an error enum for adding/modifying/removing tunnels
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 11:45:44 +05:30
Roopesh Chander
dd33d74caf
VPN: TunnelsManager: s/TunnelsManagerError/TunnelActivationError/g;
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 01:47:53 +05:30
Roopesh Chander
0aab067a53
VPN: TunnelsManager should keep track of tunnel names to prevent duplicate names
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-11-01 01:47:53 +05:30
Jason A. Donenfeld
fff1a70ab9
UI: not all subclasses of CopyableLabelTableViewCell have a detailTextLabel, so generalize
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-31 16:38:05 +01:00
Jason A. Donenfeld
ecb6035d36
TunnelManager: bound recursion in startActivation
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-31 15:58:03 +01:00
Roopesh Chander
b2ab6b91a1
VPN: Retry startTunnel based on error conditions
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-10-31 16:42:29 +05:30
Roopesh Chander
059a989fc9
Tunnel list: Fix importing zip with multiple configurations
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-10-31 14:30:25 +05:30
Roopesh Chander
439f8f5a15
VPN: Support adding multiple configurations in one shot
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-10-31 14:29:54 +05:30
Jason A. Donenfeld
9f5612f93f
wireguard-go-bridge: extract version for consumption by network extension
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-31 04:08:13 +01:00
Jason A. Donenfeld
2a9c7e4745
wireguard-go-bridge: simplify logging and remove tags
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-31 03:22:22 +01:00
Jason A. Donenfeld
d2f3a29f45
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>
2018-10-31 03:03:00 +01:00
Jason A. Donenfeld
3ed88cd858
wireguard-go-bridge: handle errors in makefile
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-31 02:49:59 +01:00
Jason A. Donenfeld
2e78aecd68
UI: More elegant copy-to-clipboard behavior
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-31 02:17:47 +01:00
Jason A. Donenfeld
935dc9bf4e
wireguard-go: pull in recent change
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-30 22:51:05 +01:00
Roopesh Chander
e13bf133db
QR code: QR code scanning is not available in the simulator
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-10-30 19:22:24 +05:30
Roopesh Chander
900b468622
Style: Remove 'Based on' attributions
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-10-30 19:07:07 +05:30
Roopesh Chander
904a080690
QR code: Show label overlay with info on how to generate the QR code
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-10-30 19:04:15 +05:30
Roopesh Chander
cd7dd56980
Tunnel creation: Placeholders for Listen port, Pre-shared key, Persistent Keepalive
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-10-30 18:50:56 +05:30
Roopesh Chander
fd241fac40
VPN: Refactor use of DNS resolution while activating the tunnel
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-10-30 18:36:28 +05:30
Roopesh Chander
ce20a17e51
NE: Print error when unable to start the tunnel
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-10-30 18:36:28 +05:30
Roopesh Chander
60943d88e0
Tunnel view model: IP address can be specified without '/cidr'
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-10-30 13:46:10 +05:30
Roopesh Chander
7e4597e0d7
Model: IP address can be specified without '/cidr'
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-10-30 13:45:16 +05:30
Roopesh Chander
535f0e1e4a
Fix error message: s/atleast/at least/g;
...
Signed-off-by: Roopesh Chander <roop@roopc.net>
2018-10-30 13:32:14 +05:30
Jason A. Donenfeld
5b6ef1ca38
Global: fix up captialization in headers
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-30 03:57:35 +01:00
Jason A. Donenfeld
dd1e800348
Style: simplify remaining headers
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-30 03:55:43 +01:00