Commit Graph

415 Commits

Author SHA1 Message Date
Jeroen Leenarts
878f6c54d1 We do not support "on demand" right now.
On demand has the effect of the VPN tunnel being started "on demand" based on a set of triggering criteria. Currently there are no criteria in place, so it always triggers.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-15 21:26:07 +02:00
Jeroen Leenarts
6104546fc6 Add intermediate "Info" screen.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-15 21:24:52 +02:00
Jeroen Leenarts
3a8f8ef9e6 Prevent crash on add and deletion of config.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-15 21:23:47 +02:00
Jeroen Leenarts
b8abaa5283 Re-center app icon.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-15 20:29:28 +02:00
Jeroen Leenarts
3802a5c50b Rename "WireGuard tunnels" to "WireGuard".
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-15 20:27:14 +02:00
Jeroen Leenarts
3dcaaa4e6c Fix provisioning.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-15 20:26:17 +02:00
Jason A. Donenfeld
477433c9d5 Let XCode mess with stuff
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-15 16:13:50 +02:00
Jason A. Donenfeld
e379854dcb Update bundle names
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-15 02:22:10 +02:00
Jason A. Donenfeld
c7855a0d27 Remove testing id
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-15 01:33:48 +02:00
Jason A. Donenfeld
d520420cc3 Set correct team
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-15 01:32:41 +02:00
Jeroen Leenarts
ad7fc0b554 Add note about availability of Go.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-13 23:36:48 +02:00
Jeroen Leenarts
1379d97bbe Switch copyright assignment from Jason to WireGuard LLC.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-06 07:42:23 +02:00
Jeroen Leenarts
d729a7686e Working zip import.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-05 20:25:54 +02:00
Jeroen Leenarts
24623c4ea3 Remove item from provider managers on delete.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-05 20:25:32 +02:00
Jeroen Leenarts
b7755b97a3 Make sure to refresh provider managers after saving.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-05 20:10:09 +02:00
Jeroen Leenarts
56c543f1fc Import of zip.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-03 00:08:34 +02:00
Jeroen Leenarts
9bd251fe79 Lazy WGContext made connection unstable.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-02 23:23:30 +02:00
Jeroen Leenarts
8766750bb8 Zip export.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-02 22:47:41 +02:00
Jeroen Leenarts
2572c4781c Add import and export logic.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-01 00:18:12 +02:00
Jeroen Leenarts
4950254013 Add addresses, dns and mtu to export string.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-31 21:40:24 +02:00
Jason A. Donenfeld
721202c65b wireguard-go-bridge: include header for free function
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-31 10:29:27 -06:00
Jeroen Leenarts
b1aadaf82c Add string conversion for tunnel config.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-29 15:01:59 +02:00
Jeroen Leenarts
cd6cb37163 Replace NSLog with os_log.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-28 14:05:34 +02:00
Jeroen Leenarts
8382fddbdc Cleanup config extraction.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-28 14:05:19 +02:00
Jeroen Leenarts
0e2fb3eace Move connection logic into seperate function.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-28 14:04:38 +02:00
Jeroen Leenarts
0c19d713f2 Extract log config to a function and base log level on wg level.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-28 14:03:53 +02:00
Jeroen Leenarts
88d84f702b Make wgContext lazy.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-28 14:02:59 +02:00
Jeroen Leenarts
2e9a12c63f Initial merge of rc's work.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-27 22:32:47 +02:00
Jeroen Leenarts
2c3a36078e Select correct IP version identifier based on packet contents.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-27 13:52:02 +02:00
Jeroen Leenarts
56362ebd68 Move, modify and add key generation functions to project.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-27 13:38:50 +02:00
Jason A. Donenfeld
388e652315 wireguard-go-bridge: free C strings
Reported-by: Anders Bergh <anders1@gmail.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-26 21:11:39 -06:00
Jeroen Leenarts
8c8030e5c7 Add autorelease pool markers in Go callback functions.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-23 09:17:04 +02:00
Eric Kuck
fc1ddc8b12 Reworked main tableview switch layout & logic
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-08-22 13:34:08 -05:00
Jason A. Donenfeld
9d9307ce03 Import 25519 functions, to be reorganized later
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-21 16:14:17 -07:00
Jeroen Leenarts
e93e562f38 Use a Switch on each tunnel cell.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-21 22:27:44 +02:00
Jeroen Leenarts
dc1a3865af Line selection configures the tunnel.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-21 20:04:14 +02:00
Eric Kuck
39ae9db11c Added ability to add tunnels with a QR code scan. Logic in place to parse conf files as well.
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-08-21 11:00:41 -05:00
Jeroen Leenarts
c2b591cc44 Use first peer's endpoint as the tunnel remote address.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-17 22:07:01 +02:00
Jeroen Leenarts
5a7e67b53c Extend validators to work for DNS entries as well.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-16 22:41:45 +02:00
Jeroen Leenarts
bf3510765a Use commaSeparatedToArray utility everywhere.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-16 22:39:08 +02:00
Jeroen Leenarts
603953a8b8 If the selected tunnel is not "enabled", make it enabled.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-16 22:05:22 +02:00
Jeroen Leenarts
a95212fcc8 Add on demand rule.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-16 22:04:35 +02:00
Jeroen Leenarts
0adb454bd6 Do not perform optional try, this ate errors in the addressess and DNS input.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-16 22:03:40 +02:00
Jeroen Leenarts
d1223eb085 Disable warning for function body length.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-16 21:46:54 +02:00
Jeroen Leenarts
d341c8e8e8 Calculate and apply CIDR.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-16 21:26:24 +02:00
Eric Kuck
b306149222 Added validation before saving any tunnels
Signed-off-by: Eric Kuck <eric@bluelinelabs.com>
2018-08-15 17:34:16 -05:00
Jeroen Leenarts
449bd53b1e Apply endpoint config to routes.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-15 22:57:40 +02:00
Jeroen Leenarts
91daed0c80 Improve validator for IPv6.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-15 22:52:37 +02:00
Jeroen Leenarts
15cb942368 Assign correct copyright.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-15 20:38:56 +02:00
Jeroen Leenarts
9037b90747 Add Validator for Endpoints.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-15 20:35:21 +02:00