Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | providerConfiguration is now a WgQuickConfig | Eric Kuck | 2018-12-21 | 1 | -2/+1 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Do not require NetworkExtension to know its own name | Jason A. Donenfeld | 2018-12-21 | 2 | -15/+11 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Get rid of superflous isActivateOnDemandEnabled key | Jason A. Donenfeld | 2018-12-21 | 2 | -32/+4 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Updated NETunnelProvider save format | Eric Kuck | 2018-12-21 | 2 | -7/+5 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | NE: simplify logic | Jason A. Donenfeld | 2018-12-21 | 2 | -46/+27 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | NE: Simplify DNS resolution | Roopesh Chander | 2018-12-21 | 2 | -23/+6 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | NE: Update listen port only when first interface changes | Roopesh Chander | 2018-12-21 | 2 | -4/+27 |
| | | | | | | | When handling network path changes, change the listen port only when the first interface has changed. Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | NE: Change handling of bad domain names and Activate On Demand | Roopesh Chander | 2018-12-21 | 2 | -42/+30 |
| | | | | | | | | | | | | | | | | The solution implemented in commit b8c331c causes the tunnel to remain in 'Activating' state, without the ability to cancel that. So, in this commit, instead of retrying DNS silently on Activated-On-Demand tunnels, we fail the startTunnel() silently. To summarize, if activate-on-demand is on: - If started from the WireGuard app, show error using lastErrorFile mechanism, suggesting a way to turn off Activate On Demand - If not started from WireGuard app, don't call displayMessage() (don't show error to user) and silently fail starting the tunnel Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Enabled more swiftlint rules | Eric Kuck | 2018-12-20 | 2 | -2/+2 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | NE: Log whether tunnel was activated from the app or not | Roopesh Chander | 2018-12-19 | 1 | -0/+6 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Remove non-helpful comments | Roopesh Chander | 2018-12-19 | 1 | -2/+0 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | NE: Handle bad domain names and Activate On Demand | Roopesh Chander | 2018-12-19 | 2 | -15/+50 |
| | | | | | | | | | | | 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> | ||||
* | NE: No need for two startTunnel() methods | Roopesh Chander | 2018-12-19 | 1 | -5/+1 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Got TunnelsManager back under the max file length by splitting out NEVPNStatus+CustomStringConvertible | Eric Kuck | 2018-12-16 | 1 | -13/+2 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Most similar views now shared between ViewControllers | Eric Kuck | 2018-12-14 | 1 | -1/+1 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Simplify logging tags | Jason A. Donenfeld | 2018-12-14 | 1 | -1/+1 |
| | | | | | | | 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> | ||||
* | NE: Communicate last error to app through a shared file | Roopesh Chander | 2018-12-14 | 2 | -13/+42 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Localize swiftlint | Jason A. Donenfeld | 2018-12-13 | 1 | -1/+2 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Reorganized ViewControllers (split out UIViews and UITableViewCells into their own classes) | Eric Kuck | 2018-12-13 | 2 | -1/+4 |
| | | | | | | All swiftlint warnings except one fixed up Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Avoid escaping heap allocation | Jason A. Donenfeld | 2018-12-13 | 1 | -3/+3 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Tidy up str to gostr conversion | Jason A. Donenfeld | 2018-12-13 | 1 | -16/+8 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Rewrite Logger | Jason A. Donenfeld | 2018-12-13 | 1 | -23/+4 |
| | | | | | | | 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 | -17/+2 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Logging: Use ringlogger for logging from the extension | Roopesh Chander | 2018-12-13 | 2 | -39/+3 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Avoid using 'VPN' in code where possible | Roopesh Chander | 2018-12-13 | 1 | -1/+1 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Remove useless whitespace | Jason A. Donenfeld | 2018-12-13 | 1 | -9/+9 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | More formatting nits and cyclomatic complexity fixes | Eric Kuck | 2018-12-12 | 3 | -98/+62 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | More linter warnings fixed, enabled more swiftlint rules, project cleanup | Eric Kuck | 2018-12-12 | 4 | -26/+31 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Tons more swiftlint warnings fixed. Still a few remaining. | Eric Kuck | 2018-12-12 | 4 | -35/+32 |
| | | | | 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 | 4 | -21/+21 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Supply missing pieces of path change | Jason A. Donenfeld | 2018-12-12 | 2 | -10/+12 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Fixed a potential race condition, better naming on PacketTunnelSettingsGenerator methods | Eric Kuck | 2018-12-11 | 2 | -18/+24 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | Added an (unfinished) NWPathMonitor implementation for reconnecting on network changes | Eric Kuck | 2018-12-11 | 2 | -1/+39 |
| | | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com> | ||||
* | PacketTunnelProvider: Show log timestamp | Jason A. Donenfeld | 2018-12-07 | 1 | -14/+3 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | Plist: Handle crypto export | Jason A. Donenfeld | 2018-12-07 | 1 | -0/+2 |
| | | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> | ||||
* | NE: Logging: Log file should begin with version numbers and tunnel name | Roopesh Chander | 2018-12-07 | 2 | -0/+16 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | NE: Logging: Make it clear which calls to wg_log use String and which use StaticString | Roopesh Chander | 2018-12-04 | 1 | -11/+11 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | NE: Write log to file | Roopesh Chander | 2018-11-30 | 1 | -10/+79 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Info.plist: Add app group id for accessing from both the app and the network extension | Roopesh Chander | 2018-11-29 | 1 | -0/+2 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Xcode: Add app groups capability | Roopesh Chander | 2018-11-29 | 1 | -0/+4 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | NE: All DNS queries must first go through the VPN's DNS servers | Roopesh Chander | 2018-11-23 | 1 | -1/+3 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | NE: Minor refactoring to enable calling startTunnel() with a tunnelConfiguration | Roopesh Chander | 2018-11-09 | 1 | -1/+6 |
| | | | | 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 Chander | 2018-11-09 | 2 | -1/+30 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Move logic to extension: Bring up the tunnel from the stored providerConfiguration | Roopesh Chander | 2018-11-08 | 1 | -77/+33 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | DNSResolver: Simplify | Roopesh Chander | 2018-11-08 | 1 | -28/+6 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | DNSResolver: Let's not cache DNS resolution results anymore | Roopesh Chander | 2018-11-08 | 1 | -17/+9 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | DNSResolver: DNS resolution can now happen synchronously | Roopesh Chander | 2018-11-08 | 1 | -18/+23 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Move logic to extension: Refactor PacketTunnelOptionsGenerator into a PacketTunnelSettingsGenerator | Roopesh Chander | 2018-11-08 | 1 | -38/+63 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Move logic to extension: Move DNSResolver to extension | Roopesh Chander | 2018-11-08 | 1 | -0/+158 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> | ||||
* | Move logic to extension: Move PacketTunnelOptionsGenerator to the extension | Roopesh Chander | 2018-11-08 | 1 | -0/+178 |
| | | | | Signed-off-by: Roopesh Chander <roop@roopc.net> |