Jason A. Donenfeld
737f847c0d
go-bridge: dup tunFd so as to not confuse NetworkExtension
...
The extension isn't banking on tunFd being closed ever, so dup it before
handing it to the rest of wireguard-go.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-09-02 17:21:37 +02:00
Andrej Mihajlov
30406dec6d
wireguard-go-bridge: use C string instead of gostring_t
...
Signed-off-by: Andrej Mihajlov <and@mullvad.net>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-02-07 22:35:57 +01:00
Jason A. Donenfeld
cfff596c30
wireguard-go-bridge: bump
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2020-01-27 12:10:21 +01:00
Jason A. Donenfeld
c48406ac38
wireguard-go-bridge: style
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-11-20 09:59:21 +01:00
Jason A. Donenfeld
cb0c965294
wireguard-go-bridge: update to 1.13.4
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-11-05 17:20:31 +08:00
Jason A. Donenfeld
a1ca4f6eb5
wireguard-go-bridge: work around Go 1.13.3 regression
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-10-25 10:36:58 +02:00
Jason A. Donenfeld
f120a6aab0
wireguard-go-bridge: reduce version checks and cleanup
...
We now rely on -trimpath which restricts us to >= 1.13, and the patch
application should fail too. This has the downside that the user will
need to clean their xcode project when they upgrade go, though.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-10-08 16:59:02 +02:00
Jason A. Donenfeld
0d8108d8da
wireguard-go-bridge: update for 1.13
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-10-04 18:28:53 +02:00
Jason A. Donenfeld
4cb783c447
go-bridge: bump version
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-31 19:20:51 +02:00
Jason A. Donenfeld
168ba2da8a
NetworkExtension: bump sockets on path change
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-31 17:29:29 +02:00
Jason A. Donenfeld
0340641c4c
NetworkExtension: apparently the extension process is scoped properly anyway
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-05-26 00:12:47 +05:30
Jason A. Donenfeld
83ea9d6fa7
wireguard-go-bridge: add missing format specifier for error
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-04-24 13:24:03 +02:00
Jason A. Donenfeld
5b34f49166
wireguard-go-bridge: bump again for version file placement
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-04-09 10:43:24 +02:00
Jason A. Donenfeld
db876647d6
wireguard-go-bridge: version bump to new tag
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-04-09 07:44:50 +02:00
Jason A. Donenfeld
0c2eb003a0
wireguard-go-bridge: update deps
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-28 15:55:53 +01:00
Jason A. Donenfeld
b21fdfed67
wireguard-go-bridge: do not use getdirentries64 on macos
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-19 21:23:46 +01:00
Jason A. Donenfeld
c750f28c67
wireguard-go-bridge: update deps
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-12 10:45:14 +01:00
Jason A. Donenfeld
4503c11b0c
wireguard-go-bridge: use system go installation
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-08 05:56:00 +01:00
Jason A. Donenfeld
d7b16ffb1f
wireguard-go-bridge: use go modules
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-03-03 06:28:07 +01:00
Jason A. Donenfeld
b1dabf5a00
wireguard-go-bridge: update to Go 1.12
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-27 06:24:56 +01:00
Jason A. Donenfeld
2ec51ba8cf
wireguard-go-bridge: get rid of nopie warning
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-08 16:42:25 +01:00
Jason A. Donenfeld
998bbd73e4
wireguard-go-bridge: Cache go tarballs
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-08 16:23:40 +01:00
Jason A. Donenfeld
631e9bb70d
wireguard-go: Bump
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-02-07 21:09:53 +01:00
Jason A. Donenfeld
ab3cbee6a2
wireguard-go-bridge: allow querying internal settings
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-01-24 01:22:04 +01:00
Jason A. Donenfeld
fadef52e1b
wireguard-go-bridge: fix standalone build
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-01-23 21:59:51 +01:00
Jason A. Donenfeld
668c4a475c
macOS: remove mobile network tweeks
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-01-22 13:11:28 +01:00
Roopesh Chander
1ca5407b85
wireguard-go-bridge: Make CFLAGS_PREFIX work for macOS as well
...
For macOS, Xcode doesn't set DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX,
but does set DEPLOYMENT_TARGET_CLANG_FLAG_NAME.
Signed-off-by: Roopesh Chander <roop@roopc.net>
2019-01-14 14:52:26 +05:30
Jason A. Donenfeld
e2384e143c
Update copyright
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2019-01-07 19:23:39 -05:00
Jason A. Donenfeld
c9c343cde2
NetworkExtension: rescope socket instead of tearing down socket
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-26 01:17:55 +01:00
Jason A. Donenfeld
accf60b82f
Do not require NetworkExtension to know its own name
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-21 22:05:47 +01:00
Jason A. Donenfeld
b23578dc7c
wireguard-go-bridge: SDK_DIR is not defined for simulator
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-20 20:47:49 +01:00
Jason A. Donenfeld
d775682ef4
More proper way to get sdk root directory
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-17 00:23:11 +01:00
Jason A. Donenfeld
ae339a000e
Further generalize makefile
...
This should allow us to eventually build on macOS
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-16 03:51:43 +01:00
Jason A. Donenfeld
a80cf6a0dc
Bump the go runtime
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-16 01:55:04 +01:00
Jason A. Donenfeld
946524aa8b
Bump the go runtime
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-15 06:14:05 +01:00
Jason A. Donenfeld
034a1a12f7
Supply missing pieces of path change
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-12 01:11:43 +01:00
Jason A. Donenfeld
63e67a5e13
Revert pure-go network monitoring and add wgSetConfig
...
This reverts commit 99f0e457c3
and adds a
function too.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-11 22:25:54 +01:00
Jason A. Donenfeld
ddccd6da4c
wireguard-go-bridge: account for network changes
...
Everytime the network changes, we need to recreate the UDP socket,
because the ephemeral listen port is tied to the old physical interface.
As well, we need to re-set the IP addresses for each endpoint, so that
they're passed to getaddrinfo and are then resolved using DNS46.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-12-07 21:50:19 +01:00
Jason A. Donenfeld
0a55a284d5
wireguard-go-bridge: take fd instead of fnptr
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-06 16:27:25 +01:00
Jason A. Donenfeld
03cce06292
wireguard-go-bridge: work around DWARF generation issue
...
Golang bug 25148 upstream.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-05 04:47:11 +01:00
Jason A. Donenfeld
fe76d6eed9
wireguard-go-bridge: xcode expects install target
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-04 03:56:15 +01:00
Jason A. Donenfeld
6676e557f1
wireguard-go-bridge: use boottime instead of monotonic
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-11-01 23:39:06 +01:00
Jason A. Donenfeld
9f5612f93f
wireguard-go-bridge: extract version for consumption by network extension
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-31 04:08:13 +01:00
Jason A. Donenfeld
2a9c7e4745
wireguard-go-bridge: simplify logging and remove tags
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-31 03:22:22 +01:00
Jason A. Donenfeld
3ed88cd858
wireguard-go-bridge: handle errors in makefile
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-31 02:49:59 +01:00
Jason A. Donenfeld
95fefbdb39
Allow customizing MTU
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-27 01:03:28 +02:00
Jason A. Donenfeld
e1ebe64a47
bridge: go get requires arch paths
...
So we move it into the build phase. This makes sense, since ostensibly
different archs might have different required modules.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-26 22:40:07 +02:00
Jason A. Donenfeld
add2b2c09c
Use go modules
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-09 19:51:53 +02:00
Jason A. Donenfeld
cd86ba92ec
Rewrite bridge build system
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-10-02 19:15:03 +02:00
Jeroen Leenarts
f118f9ef4b
Add missing file and fix hard path.
...
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2018-09-27 07:57:42 +02:00