aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Handle cell reuse in showing delete buttons in redRoopesh Chander2018-11-022-2/+16
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Table edit: Show/hide 'Exclude Private IPs' instead of enable/disableRoopesh Chander2018-11-021-16/+36
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel view model: If there's just one peer, populate the scratchpad on initRoopesh Chander2018-11-021-7/+13
| | | | | | So that exclude private IPs can be computed correctly. Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel view model: Initialize peerData.numberOfPeersRoopesh Chander2018-11-021-0/+4
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* DNSResolver: getaddrinfo returns a sockaddr and inet_ntop takes strlenJason A. Donenfeld2018-11-021-4/+6
| | | | | | The way this was written before was totally wrong. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* wireguard-go-bridge: use boottime instead of monotonicJason A. Donenfeld2018-11-012-7/+86
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* NetworkExtension: check isTunnelClosed before packet existenceJason A. Donenfeld2018-11-011-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Global: OK over OkJason A. Donenfeld2018-11-015-6/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Deletion buttons are shown in redRoopesh Chander2018-11-012-0/+2
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel edit: Highlight erroring field keys in redRoopesh Chander2018-11-011-2/+7
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnels list: Swipe left to deleteRoopesh Chander2018-11-011-0/+17
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Global: fix up stringsJason A. Donenfeld2018-11-018-53/+43
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* QR code: Fix what happens when an error is shownRoopesh Chander2018-11-011-1/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* NE: Show an alert when someone tries to start the VPN from iOS SettingsRoopesh Chander2018-11-011-2/+5
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Export: fix up export formatJason A. Donenfeld2018-11-011-13/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Tunnel errors: Consolidate tunnel activation errors into ErrorPresenterRoopesh Chander2018-11-013-16/+36
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Better errorsRoopesh Chander2018-11-011-4/+4
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* ConfigFile: WgQuickConfigFileWriter: Fix '[Peer]' section headerRoopesh Chander2018-11-011-1/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Importing: Account for errors in showing the 'No configurations found' errorRoopesh Chander2018-11-011-4/+4
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel detail: Fix deletion of tunnelRoopesh Chander2018-11-011-7/+8
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: TunnelsManager: Fix deletion codeRoopesh Chander2018-11-011-1/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: Restart tunnel after modifying a currently active configurationRoopesh Chander2018-11-012-7/+29
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* QR code: Degrade gracefully when running on the simulator or on a device without a cameraRoopesh Chander2018-11-011-5/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Revert "QR code: QR code scanning is not available in the simulator"Roopesh Chander2018-11-011-6/+0
| | | | | | This reverts commit 9729386406cd9543303a68e51d57b286880bb8cd. Signed-off-by: Roopesh Chander <roop@roopc.net>
* Importing: Show error when the zip file contains no .conf filesRoopesh Chander2018-11-011-0/+4
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: We have to start observing the tunnelContainer before we attempt to activate itRoopesh Chander2018-11-011-1/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Importing: Error out on duplicate nameRoopesh Chander2018-11-011-3/+5
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* QR Code: Error out on duplicate nameRoopesh Chander2018-11-012-7/+10
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel edit: Error out on duplicate name when creating / modifying a tunnelRoopesh Chander2018-11-011-5/+3
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: An ErrorPresenter class to consolidate showing of error alertsRoopesh Chander2018-11-012-1/+51
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: Introduce an error enum for adding/modifying/removing tunnelsRoopesh Chander2018-11-011-11/+28
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: TunnelsManager: s/TunnelsManagerError/TunnelActivationError/g;Roopesh Chander2018-11-013-10/+10
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: TunnelsManager should keep track of tunnel names to prevent duplicate namesRoopesh Chander2018-11-011-0/+17
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* UI: not all subclasses of CopyableLabelTableViewCell have a detailTextLabel, so generalizeJason A. Donenfeld2018-10-313-1/+13
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelManager: bound recursion in startActivationJason A. Donenfeld2018-10-311-3/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* VPN: Retry startTunnel based on error conditionsRoopesh Chander2018-10-312-11/+58
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel list: Fix importing zip with multiple configurationsRoopesh Chander2018-10-311-6/+12
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: Support adding multiple configurations in one shotRoopesh Chander2018-10-311-0/+21
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* wireguard-go-bridge: extract version for consumption by network extensionJason A. Donenfeld2018-10-315-15/+35
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* wireguard-go-bridge: simplify logging and remove tagsJason A. Donenfeld2018-10-314-15/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* NetworkExtension: close context before turning off goJason A. Donenfeld2018-10-311-1/+1
| | | | | | | | 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>
* wireguard-go-bridge: handle errors in makefileJason A. Donenfeld2018-10-311-8/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* UI: More elegant copy-to-clipboard behaviorJason A. Donenfeld2018-10-315-59/+87
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* wireguard-go: pull in recent changeJason A. Donenfeld2018-10-301-0/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* QR code: QR code scanning is not available in the simulatorRoopesh Chander2018-10-301-0/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Style: Remove 'Based on' attributionsRoopesh Chander2018-10-302-2/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* QR code: Show label overlay with info on how to generate the QR codeRoopesh Chander2018-10-301-0/+14
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel creation: Placeholders for Listen port, Pre-shared key, Persistent KeepaliveRoopesh Chander2018-10-301-1/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: Refactor use of DNS resolution while activating the tunnelRoopesh Chander2018-10-301-40/+56
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* NE: Print error when unable to start the tunnelRoopesh Chander2018-10-301-1/+4
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>