aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard (follow)
Commit message (Collapse)AuthorAgeFilesLines
* macOS: Fix WireGuardNetworkExtensionmacOS targetRoopesh Chander2019-01-144-87/+85
| | | | | | | | | | | - Build using common network extension code - Add run scripts - Set Info.plist to common network extension's Info.plist - Move entitlements to common network extension folder - Remove Xcode-generated macOS network extension code - Set Swift-Obj-C bridging header Signed-off-by: Roopesh Chander <roop@roopc.net>
* macOS: WireGuardNetworkExtensionmacOS depends on WireGuardGoBridgemacOSRoopesh Chander2019-01-141-1/+18
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* macOS: Add WireGuardNetworkExtensionmacOS targetRoopesh Chander2019-01-144-3/+230
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* macOS: Add WireGuardmacOS targetRoopesh Chander2019-01-147-1/+957
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Xcode: Add WireGuardGoBridgemacOS targetRoopesh Chander2019-01-141-0/+51
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Move iOS images and storyboard into UI/iOS/ folderRoopesh Chander2019-01-1424-2/+2
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Xcode: Rename iOS targets to include an 'iOS' suffixRoopesh Chander2019-01-141-27/+27
| | | | | | But keep the PRODUCT_NAME as 'WireGuard', not 'WireGuardiOS'. Signed-off-by: Roopesh Chander <roop@roopc.net>
* xcconfig: Make app id platform-specificRoopesh Chander2019-01-146-10/+10
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* On-Demand: Add support for macOS-specific valuesRoopesh Chander2019-01-143-8/+49
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* import Foundation instead of UIKit wherever possibleRoopesh Chander2019-01-144-4/+4
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Version bump0.0.20190107-1Jason A. Donenfeld2019-01-081-2/+2
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* PacketTunnelSettingsGenerator: use 127.0.0.1 as dummy addressJason A. Donenfeld2019-01-081-3/+1
| | | | | | | It turns out that using 0.0.0.0 somehow conflicts with DNS lookups when CLAT is in use. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Avoid dynamic MTU calculations for nowJason A. Donenfeld2019-01-071-5/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Update copyrightJason A. Donenfeld2019-01-0750-50/+50
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Version bump0.0.20181225-2Jason A. Donenfeld2018-12-281-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Rework DNS and routes in network extensionJason A. Donenfeld2018-12-283-92/+77
| | | | | | | | | | | | | | | | | The DNS resolver prior had useless comments, awful nesting, converted bytes into strings and back into bytes, and generally made no sense. That's been rewritten now. But more fundumentally, this commit made the DNS resolver actually accomplish its objective, by passing AI_ALL to it. It turns out, though, that the Go library isn't actually using GAI in the way we need for parsing IP addresses, so we actually need to do another round, this time with hints flag as zero, so that we get the DNS64 address. Additionally, since we're now binding sockets to interfaces, we can entirely remove the excludedRoutes logic. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Version bump0.0.20181225-1Jason A. Donenfeld2018-12-261-2/+2
| | | | | | | A Christmas Special, for TestFlight, and possibly for release if things go well there. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* NetworkExtension: rescope socket instead of tearing down socketJason A. Donenfeld2018-12-262-21/+16
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* minizip: Remove zip encryption codeRoopesh Chander2018-12-253-105/+0
| | | | | | We can now remove -DNOCRYPT cflag while compiling Signed-off-by: Roopesh Chander <roop@roopc.net>
* Tunnel edit: Fix crashRoopesh Chander2018-12-241-1/+2
| | | | | | | | | | This fixes a crash that happens when you: 1. Scroll to the end of the Edit screen 2. Delete a peer 3. Toggle the Activate On Demand switch Signed-off-by: Roopesh Chander <roop@roopc.net>
* SwitchCell nitsEric Kuck2018-12-222-5/+5
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Fix typo for simulator buildsEric Kuck2018-12-221-1/+1
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Remove more commentsRoopesh Chander2018-12-236-41/+2
| | | | Signed-off-by: Roopesh Chander <roop@roopc.net>
* Rely on availability of fd only after setting network settingsJason A. Donenfeld2018-12-221-29/+24
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Retain aggressive socket reestablishment for nowJason A. Donenfeld2018-12-221-1/+2
| | | | | | This can be reverted once we've done more testing. Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Don't set username on NETunnelProviderProtocolRoopesh Chander2018-12-221-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>
* 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-223-22/+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-219-1/+99
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Clean up trailing whitespaceJason A. Donenfeld2018-12-224-12/+12
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Do not crash if we can't get socket.fileDescriptorJason A. Donenfeld2018-12-221-1/+1
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Removing a tunnel from iOS's settings is now immediately reflected in appEric Kuck2018-12-216-52/+72
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Localize remaining strings in network extensionJason A. Donenfeld2018-12-225-40/+42
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* RTL supportEric Kuck2018-12-214-15/+15
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Strongly recommended now appears as placeholder for DNS when neededEric Kuck2018-12-211-19/+29
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Combine double log invocationsJason A. Donenfeld2018-12-222-7/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Attempt to strongly recommend thingsJason A. Donenfeld2018-12-223-6/+12
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Move model helpers to model directoryJason A. Donenfeld2018-12-225-6/+4
| | | | 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>
* Do not set copyable back to true on reuseJason A. Donenfeld2018-12-221-0/+5
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Move name from interface to tunnelJason A. Donenfeld2018-12-2213-35/+41
| | | | 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>
* Nuke trailing spacesJason A. Donenfeld2018-12-2126-173/+173
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* providerConfiguration is now a WgQuickConfigEric Kuck2018-12-2119-315/+109
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Do not require NetworkExtension to know its own nameJason A. Donenfeld2018-12-212-15/+11
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* All migration stuff moved to one gross fileEric Kuck2018-12-219-299/+202
| | | | Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
* Simplify versioning of stored dataJason A. Donenfeld2018-12-211-26/+10
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Get rid of superflous isActivateOnDemandEnabled keyJason A. Donenfeld2018-12-217-54/+19
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>