Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make app groups work on both iOS and macOS | Roopesh Chander | 2019-01-14 | 1 | -1/+6 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Update copyright | Jason A. Donenfeld | 2019-01-07 | 14 | -14/+14 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Don't set username on NETunnelProviderProtocol | Roopesh Chander | 2018-12-22 | 1 | -3/+0 |
| | | | | | | | | The username corresponds to the Account field in iOS system VPN UI, but if we don't set it, the field is not shown, so setting it isn't really required. Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | All models now Equatable | Eric Kuck | 2018-12-21 | 6 | -0/+75 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Localize remaining strings in network extension | Jason A. Donenfeld | 2018-12-22 | 1 | -0/+8 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Move model helpers to model directory | Jason A. Donenfeld | 2018-12-22 | 4 | -2/+0 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Move name from interface to tunnel | Jason A. Donenfeld | 2018-12-22 | 5 | -16/+17 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Nuke trailing spaces | Jason A. Donenfeld | 2018-12-21 | 10 | -60/+60 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | providerConfiguration is now a WgQuickConfig | Eric Kuck | 2018-12-21 | 10 | -195/+248 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | All migration stuff moved to one gross file | Eric Kuck | 2018-12-21 | 8 | -255/+196 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Simplify versioning of stored data | Jason A. Donenfeld | 2018-12-21 | 1 | -26/+10 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Get rid of superflous isActivateOnDemandEnabled key | Jason A. Donenfeld | 2018-12-21 | 1 | -11/+3 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Updated NETunnelProvider save format | Eric Kuck | 2018-12-21 | 14 | -186/+564 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Enabled more swiftlint rules | Eric Kuck | 2018-12-20 | 1 | -0/+1 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Remove non-helpful comments | Roopesh Chander | 2018-12-19 | 3 | -6/+0 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | TunnelsManager: If only Activate On Demand has changed, don't restart tunnel | Roopesh Chander | 2018-12-19 | 1 | -0/+6 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | NE: Handle bad domain names and Activate On Demand | Roopesh Chander | 2018-12-19 | 1 | -2/+7 |
| | | | | | | | | | | | This combination causes iOS to keep trying to bring up the tunnel, leading to a lot of displayMessage() alerts. In this fix, if we get a DNS resolution error in an Activate On Demand enabled tunnel, we silently retry 9 times (with a 4-second delay before each retry) and then show the displayMessage() alert. Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Most similar views now shared between ViewControllers | Eric Kuck | 2018-12-14 | 1 | -1/+1 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Prettier log time format | Jason A. Donenfeld | 2018-12-15 | 1 | -9/+19 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Simplify logging tags | Jason A. Donenfeld | 2018-12-14 | 3 | -19/+28 |
| | | | | | | | This was roop's initial idea, and it turns out to be the better one, now that we can pass cstrings more easily. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Simplify filemanager extension | Jason A. Donenfeld | 2018-12-13 | 1 | -18/+13 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Can't -> cannot | Jason A. Donenfeld | 2018-12-13 | 1 | -5/+5 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | NE: Communicate last error to app through a shared file | Roopesh Chander | 2018-12-14 | 1 | -0/+12 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Simplify C strings | Jason A. Donenfeld | 2018-12-13 | 1 | -13/+6 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Rewrite Logger | Jason A. Donenfeld | 2018-12-13 | 3 | -77/+78 |
| | | | | | | | This reverts all of Roop's changes to the C code, and then rewrites the logger logic to be cleaner. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Logging: Write versions from both app and extension | Roopesh Chander | 2018-12-13 | 1 | -0/+10 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Logging: file_log doesn't need the message type | Roopesh Chander | 2018-12-13 | 1 | -3/+3 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Logging: Tag the entries in the merged log | Roopesh Chander | 2018-12-13 | 3 | -6/+13 |
| | | | | | | | So we know which entry is from the app and which is from the network extension. Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Logging: Use ringlogger for logging from the app | Roopesh Chander | 2018-12-13 | 1 | -1/+1 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Logging: ringlogger.c: Trim trailing newlines | Roopesh Chander | 2018-12-13 | 1 | -0/+7 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Logging: Use ringlogger for logging from the extension | Roopesh Chander | 2018-12-13 | 4 | -19/+80 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Commit untested ringlogger code | Jason A. Donenfeld | 2018-12-13 | 2 | -0/+139 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | More formatting nits and cyclomatic complexity fixes | Eric Kuck | 2018-12-12 | 2 | -6/+4 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | More linter warnings fixed, enabled more swiftlint rules, project cleanup | Eric Kuck | 2018-12-12 | 1 | -1/+1 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Tons more swiftlint warnings fixed. Still a few remaining. | Eric Kuck | 2018-12-12 | 1 | -7/+7 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Added swiftlint and fixed all errors (and a bunch, but not all, warnings) | Eric Kuck | 2018-12-12 | 5 | -18/+26 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Model: Declare keyLength constant and use that wherever applicable | Roopesh Chander | 2018-12-09 | 1 | -3/+6 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Make strings consistent | Jason A. Donenfeld | 2018-12-07 | 1 | -1/+1 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Refactoring: Consolidate file deletion into a separate function | Roopesh Chander | 2018-12-07 | 1 | -0/+10 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | NE: Write log to file | Roopesh Chander | 2018-11-30 | 1 | -0/+19 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model, Tunnels manager: Rewrite the model for VPN-on-demand | Roopesh Chander | 2018-11-12 | 3 | -88/+2 |
| | | | | | | | | | 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> | ||||
* | Model: Add activationType to tunnel configuration | Roopesh Chander | 2018-11-11 | 3 | -19/+25 |
| | | | | | | | | | We make sure existing tunnel serializations can be deserialized correctly. We also bump up the tunnelConfigurationVersion, because the tunnel configuration contents have changed. Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model: ActivityType enum to represent VPN-on-demand options | Roopesh Chander | 2018-11-10 | 1 | -0/+66 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model: TunnelConfiguration: Add explicit conformance to Decodable | Roopesh Chander | 2018-11-10 | 1 | -1/+15 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model: Ensure that a TunnelConfiguration always has a valid array of peers | Roopesh Chander | 2018-11-10 | 1 | -2/+9 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Remove unused file PacketTunnelOptionKey.swift | Roopesh Chander | 2018-11-08 | 1 | -30/+0 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model: Endpoint.hostname() | Roopesh Chander | 2018-11-08 | 1 | -0/+11 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Move logic to extension: NETunnelProviderProtocol extension code should be shared | Roopesh Chander | 2018-11-08 | 1 | -0/+35 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Model: Move InterfaceConfiguration.publicKey to Curve25519.swift | Roopesh Chander | 2018-11-08 | 1 | -4/+0 |
| | | | | | | 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 model files to Shared | Roopesh Chander | 2018-11-08 | 4 | -0/+287 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> |