aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Tunnel view model: VPN-on-demand stuff shouldn't be part of the tunnel modelRoopesh Chander2018-11-121-16/+22
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Model, Tunnels manager: Rewrite the model for VPN-on-demandRoopesh Chander2018-11-122-36/+86
| | | | | | | | | The VPN-on-demand settings should not be part of the tunnel configuration. Rather, the onDemandRules stored in the tunnel provider configuration serve as the one place where the VPN-on-demand settings are stored. Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Support for on-demand rulesRoopesh Chander2018-11-111-0/+36
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel edit, Tunnel view model: UI for providing On-Demand activation optionsRoopesh Chander2018-11-112-6/+125
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Model: Ensure that a TunnelConfiguration always has a valid array of peersRoopesh Chander2018-11-102-4/+2
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: When activating while another tunnel is active, deactivate the other tunnelRoopesh Chander2018-11-103-22/+16
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: startDeactivation() need not take a completion handlerRoopesh Chander2018-11-103-8/+3
| | | | | | Because the completion handler pattern doesn't fit in this case. Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: There are no DNS errors to handle in the app nowRoopesh Chander2018-11-102-3/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* VPN: Refresh tunnel statuses when app gets to the foregroundRoopesh Chander2018-11-092-0/+14
| | | | | | Because the tunnel could've be activated from iOS Settings now Signed-off-by: Roopesh Chander <roop@roopc.net>
* Remove unused codeRoopesh Chander2018-11-092-24/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Ability to refresh connection statusesRoopesh Chander2018-11-091-0/+14
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* NE: When there's an error starting the tunnel, show it to the user using displayMessage()Roopesh Chander2018-11-091-0/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Move logic to extension: NETunnelProviderProtocol extension code should be sharedRoopesh Chander2018-11-081-31/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Move logic to extension: Move DNSResolver to extensionRoopesh Chander2018-11-081-158/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Move logic to extension: .resolvingEndpointDomains is not longer a valid statusRoopesh Chander2018-11-083-9/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Move logic to extension: DNS resolution no longer happens in the appRoopesh Chander2018-11-081-44/+5
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Model: Move InterfaceConfiguration.publicKey to Curve25519.swiftRoopesh Chander2018-11-081-0/+6
| | | | | | The code for public key calculation need not be shared with the extension Signed-off-by: Roopesh Chander <roop@roopc.net>
* Move logic to extension: Move PacketTunnelOptionsGenerator to the extensionRoopesh Chander2018-11-081-178/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Move logic to extension: Invoke startTunnel() without any optionsRoopesh Chander2018-11-081-4/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Move logic to extension: Move model files to SharedRoopesh Chander2018-11-084-287/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel edit: While preparing for reuse, should make onValueBeingEdited nil as wellRoopesh Chander2018-11-081-0/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Version bump0.0.20181104-4Jason A. Donenfeld2018-11-071-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* iPad: Ensure we set sourceRect for all cases where we use sourceViewRoopesh Chander2018-11-073-1/+3
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Info.plist: Register for handling public.text files for Open-inRoopesh Chander2018-11-071-0/+14
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Importing: Also support importing public.text files in the file pickerRoopesh Chander2018-11-071-1/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* iPad: Set correct sourceRect for the popover anchored on the central 'Add' buttonRoopesh Chander2018-11-071-0/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Return a manager with no tunnels in the simulatorRoopesh Chander2018-11-071-0/+5
| | | | | | To be able to run at least parts of the app in the simulator. Signed-off-by: Roopesh Chander <roop@roopc.net>
* iPad: Configuring the split-view controller should happen in init(), not loadView()Roopesh Chander2018-11-071-4/+9
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Settings: show build idJason A. Donenfeld2018-11-071-1/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Version bump0.0.20181104-3Jason A. Donenfeld2018-11-061-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Importing: simplifyJason A. Donenfeld2018-11-061-26/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Importing: Assume imported files without .conf or .zip extensions to be a config fileRoopesh Chander2018-11-071-5/+5
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* DNSResolver: No need to resolve if the endpoint is already an IP addressRoopesh Chander2018-11-061-2/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Model: Endpoint.hasHostAsIPAddress()Roopesh Chander2018-11-061-0/+13
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Global: swiftlint autocorrect --formatRoopesh Chander2018-11-065-15/+15
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Global: swiftlint autocorrectRoopesh Chander2018-11-061-1/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Importing: Error out on file with unsupported file extensionRoopesh Chander2018-11-061-1/+9
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel edit: TunnelEditTableViewKeyValueCell need not support a read-only mode nowRoopesh Chander2018-11-061-21/+2
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel edit: A new cell class for the public key field, to make the value scrollableRoopesh Chander2018-11-061-0/+70
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel detail: Refactor out the label scrolling into a separate UI classRoopesh Chander2018-11-062-31/+59
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel view model: Peers in a configuation may not share the same public keyRoopesh Chander2018-11-061-0/+7
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Parser: Peers in a configuation may not share the same public keyRoopesh Chander2018-11-061-0/+7
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Version bump0.0.20181104-2Jason A. Donenfeld2018-11-051-1/+1
| | | | | | | We update the build number, not the version number, so that test flight doesn't need a new review. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Parser: Address, DNS and AllowedIPs can have mutliple entriesRoopesh Chander2018-11-051-1/+6
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* QR Code: Dismiss the QR code screen when the name prompt is cancelledRoopesh Chander2018-11-051-1/+3
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel view model: No need to save if we already have a validated configuration objectRoopesh Chander2018-11-051-0/+8
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* global: convert to Swift 4.2Jason A. Donenfeld2018-11-056-14/+14
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelsManager: account for no or many endpointsJason A. Donenfeld2018-11-053-22/+20
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Settings: account for bottom padding on iPhone XJason A. Donenfeld2018-11-051-4/+4
| | | | | Reported-by: Jeffrey A. Donenfeld <jad@runblue.com> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* XCode: use old network extension ID0.0.20181104-1Jason A. Donenfeld2018-11-042-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>