aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/Tunnel (follow)
Commit message (Collapse)AuthorAgeFilesLines
* on-demand: Remove ActivateOnDemandSetting typeRoopesh Chander2019-03-182-38/+14
| | | | | | The ActivateOnDemandOption type shall be used instead Signed-off-by: Roopesh Chander <roop@roopc.net>
* on-demand: iOS: Support for SSIDsRoopesh Chander2019-03-181-0/+10
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* on-demand: Infrastructure for supporting SSID-based rulesRoopesh Chander2019-03-181-16/+66
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* on-demand: Simplify OS-specific code for interface type selectionRoopesh Chander2019-03-181-46/+21
| | | | | | | | Previously, the enum values themselves were different for iOS and macOS. With this commit, the enum values are common, and only how they're handled is specific to iOS and macOS. Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelName: sort correctly with numbers and capitalsJason A. Donenfeld2019-03-181-4/+7
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelsManager: Don't restart if only on-demand setting has changedRoopesh Chander2019-03-111-5/+11
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Support for removing multiple tunnels at a timeRoopesh Chander2019-03-101-2/+22
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: addMultiple() should also return the last errorRoopesh Chander2019-03-051-5/+7
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* iOS: Hack to restart active tunnel after adding a new tunnelRoopesh Chander2019-02-241-1/+16
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Migrate when we notice a new tunnel in reload()Roopesh Chander2019-02-121-0/+5
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: No need to access tunnelConfiguration on status changeRoopesh Chander2019-02-091-5/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Global: fix swiftlint issuesJason A. Donenfeld2019-02-082-3/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Key: Constant time encodingJason A. Donenfeld2019-02-081-24/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelsManager: Ignore status changes on tunnel providers we don't haveRoopesh Chander2019-02-081-2/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Don't lose .restarting stateRoopesh Chander2019-02-081-4/+5
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Log startDeactivation callsRoopesh Chander2019-02-081-0/+1
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* PacketTunnelProvider: proper fix for 32073323Jason A. Donenfeld2019-02-071-15/+0
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelsManager: When creating/modifying a tunnel, update the associated objectRoopesh Chander2019-02-071-5/+7
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Keychain: store configurations in keychain instead of providerConfigJason A. Donenfeld2019-02-061-4/+16
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelsManager: cache access to configuration objectJason A. Donenfeld2019-02-061-1/+9
| | | | | | | | Supposedly we never change it once per object, so we do the objective C hack of adding it cached to the extension. This prevents 1000s of calls to the keychain and improves the speed of imports. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelsManager: Wait for 6 seconds on deactivation instead of 5Jason A. Donenfeld2019-02-061-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Configure timers to fire even when tracking mouse eventsRoopesh Chander2019-01-311-2/+2
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Invoke reload() in a subsequent runloopRoopesh Chander2019-01-261-1/+7
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* macOS: Delay .deactivated status to workaround system bugRoopesh Chander2019-01-261-2/+17
| | | | | | | | For some time after it's connection status becomes .disconnected, if a tunnel gets started, it gets automatically killed by the system after ~25 seconds. Signed-off-by: Roopesh Chander <roop@roopc.net>
* macOS: Select the active tunnel when showing the manage tunnels windowRoopesh Chander2019-01-241-0/+4
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: func tunnelInOperation()Roopesh Chander2019-01-241-0/+7
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel: support getting runtime configurationJason A. Donenfeld2019-01-242-0/+224
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* iOS: Fix stale tunnel being shown on iPadRoopesh Chander2019-01-231-3/+3
| | | | | | | | When the detail view is shown in the iPad and we delete the current tunnel with a list view swipe rather than the delete button, the detail view should go blank. Signed-off-by: Roopesh Chander <roop@roopc.net>
* macOS: reload: Iterate in reverseRoopesh Chander2019-01-221-5/+3
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: refresh status after replacing insidesJason A. Donenfeld2019-01-221-0/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* TunnelsManager: use new helperJason A. Donenfeld2019-01-221-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* macOS: Handle tunnel deletions outside the appRoopesh Chander2019-01-221-18/+39
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Better os() directivesRoopesh Chander2019-01-221-3/+9
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelsManager: Remove unused variableRoopesh Chander2019-01-181-1/+0
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* macOS: Different status bar icon looks for different statesRoopesh Chander2019-01-161-0/+4
| | | | | | | | - Looks dimmed when no tunnel is active - Looks normal when a tunnel is active - Animates when a tunnel is activating Signed-off-by: Roopesh Chander <roop@roopc.net>
* On-Demand: Add support for macOS-specific valuesRoopesh Chander2019-01-141-5/+33
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Update copyrightJason A. Donenfeld2019-01-075-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix typo for simulator buildsEric Kuck2018-12-221-1/+1
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* TunnelErrors: Add alert text for PacketTunnelProviderErrorRoopesh Chander2018-12-222-13/+21
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* TunnelStatus: Absorb NEVPNStatus+CustomStringConvertibleRoopesh Chander2018-12-222-18/+13
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Also refresh statusJason A. Donenfeld2018-12-221-1/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Reassign tunnelProvider if it changes from outside the appJason A. Donenfeld2018-12-221-2/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* All models now EquatableEric Kuck2018-12-211-1/+1
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Clean up trailing whitespaceJason A. Donenfeld2018-12-221-3/+3
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Removing a tunnel from iOS's settings is now immediately reflected in appEric Kuck2018-12-211-33/+43
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Localize remaining strings in network extensionJason A. Donenfeld2018-12-221-6/+15
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Combine double log invocationsJason A. Donenfeld2018-12-221-4/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fixes mock tunnelsEric Kuck2018-12-211-3/+3
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Move name from interface to tunnelJason A. Donenfeld2018-12-221-5/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix paren typoJason A. Donenfeld2018-12-212-3/+3
| | | | | | "I am very anti-paren." --Eric Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>