Jeroen Leenarts
fe6be49180
Change network prefix length for excluded routes to 128.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-18 22:53:00 +02:00
Jeroen Leenarts
089315ddc5
Add settings screen. Move export as zip to settings screen.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-18 21:49:59 +02:00
Jeroen Leenarts
b5783d7d21
Small comment layout tweak.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-16 22:43:40 +02:00
Jeroen Leenarts
484bef1777
Clean up old school headers.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-16 21:17:54 +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
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
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
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
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
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
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
bf3510765a
Use `commaSeparatedToArray` utility everywhere.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-16 22:39:08 +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
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
335907309c
Make sure the reference is not nil to packet flow. Thanks go out to "The Eskimo".
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-14 21:40:20 +02:00
Jeroen Leenarts
fc72697d82
Use config key for DNS config setting.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-13 13:49:14 +02:00
Jeroen Leenarts
aa92fd7dfc
Do all packet reading from dispatch queue.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-13 13:48:08 +02:00
Jeroen Leenarts
6d18b6cccb
Do not set MTU if none available or zero.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-13 13:46:56 +02:00
Jason A. Donenfeld
76a001dbe0
bridge: don't put on another thread
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-12 23:05:21 -07:00
Jeroen Leenarts
41f9a64d9f
Config tweaking.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-12 21:49:38 +02:00
Jeroen Leenarts
f6fc8cd9bd
Universal logging.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-12 21:40:44 +02:00
Jeroen Leenarts
a27328ed72
Do not read from packetFlow when tunnel is not yet fully initialized and configured.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-12 21:39:39 +02:00
Jeroen Leenarts
d38a81c301
Add back addresses.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-12 21:37:56 +02:00
Jeroen Leenarts
bee5363dfa
Switch from using a single VPN manager to a VPN manager per configuration.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-08 07:04:42 +02:00
Jeroen Leenarts
5697d6e7e2
Add provider configuration generation.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-06 09:04:29 +02:00
Jeroen Leenarts
bacf61d153
Call read packets on background queue to allow waiting for signal.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-05 22:59:34 +02:00
Jeroen Leenarts
17d4460df0
A handle of zero is also correct.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-05 22:59:01 +02:00
Jeroen Leenarts
ed18f66a6f
Set a tunnel (routing) configuration. Still very rough.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-05 22:58:48 +02:00
Jeroen Leenarts
b6d8219244
Clean up do_read.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-05 16:02:45 +02:00
Jeroen Leenarts
6cfab94713
Dump and expose WireGuard Go version info.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-05 08:07:04 +02:00
Jeroen Leenarts
40836c2150
Fix entitlement.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-04 22:48:51 +02:00
Jeroen Leenarts
660d5918ff
Make sure logs are visible.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-04 22:47:50 +02:00
Jeroen Leenarts
efe177605e
Finish trampoline code.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-08-03 22:24:41 +02:00
Jeroen Leenarts
f3bccfb5cc
Change copyright notice.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-15 11:55:41 +02:00
Jeroen Leenarts
b7cf84b7fa
Start wire-up of logging and tunnel system.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-07-07 22:54:44 +02:00
Jason A. Donenfeld
5fa1283466
Fix bizarre name
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-06-23 02:15:43 +02:00
Eli Young
86fa8e7186
Finish casing fix from Wireguard to WireGuard
...
This also removes from the project various duplicate file entries that
differed only in casing. Note that, if working with a case-insensitive
filesystem (as are generally used on macOS systems), it is recommended
to destroy the affected files in the working tree and check them out
again. Failure to do this will result in XCode recreating duplicate file
entries in the project.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-06-22 13:50:16 -07:00
Jeroen Leenarts
f30f0d1a7b
Objective-C wrapper around WireguardGo.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-06-22 08:23:39 +02:00