summaryrefslogtreecommitdiffhomepage
path: root/wireguard
AgeCommit message (Collapse)AuthorFilesLines
2024-06-25Add a safe FFI wrapper in `wireguard-go-rs`Sebastian Holmin11-672/+0
- Add local wireguard go import - Activate DAITA and add `wgActivateDaita` and `wgReceiveEvent` FFI - Implement `start_daita` on Wireguard-go tunnel type - Mention DAITA in `wireguard-go-rs` description - Do not compile `wireguard-go-rs` on Windows - Handle DAITA closed on `nil` event - Handle daita action timeouts in libwg - Remove noisy log lines - Remove `maybenot_on_action` callback - Remove unused link to `../build/lib` for `talpid-wireguard` - Bump the `wireguard-go` submodule to a signed release tag in Mullvad's `wireguard-go` fork. - Update path to `libwg/go.sum` in verification script Also: - Use u64 instead of *mut void as log context - Make Tunnel::set_config take a &mut self - Use dyn Error instead of i32s for wg errors Co-authored-by: Joakim Hulthe <joakim@hulthe.net>
2024-04-24Upgrade golang.org/x/net, golang.org/x/crypto and golang.org/x/sysLinus Färnstrand2-9/+9
Fixes issues GO-2023-2402, GO-2022-0969, GO-2023-1495, GO-2023-1571, GO-2023-1988, GO-2023-2102 and GO-2024-2687. None of these issues affected our app (they were all about HTTP/2 or other parts of golang that wireguard-go don't use)
2024-04-24Remove unused goruntime-boottime-over-monotonic.diffLinus Färnstrand1-171/+0
2024-03-28Upgrade go to 1.21 in go.modLinus Färnstrand1-1/+1
We already use go 1.21 in our build containers and build servers. So this does not change what version we actually use, only make go.mod reflect reality
2024-03-05Fix shellcheck warnings and notesJoakim Hulthe1-2/+2
2024-02-02Fix `shellcheck` lints of our various bash scriptsSebastian Holmin2-17/+22
The following lints have been fixed: SC2046,SC2086,SC2068,SC2148,SC2007,SC2004,SC2006, SC2164,SC2145,SC1091,SC2034,SC2155.
2024-01-04Update wireguard go version to 20230223181233Jonatan Rhodin4-43/+53
2023-12-27libwg: Revert wintun removal from go.sum/go.modQuincePie2-0/+3
While Windows support was removed, wireguard-go still indirectly require wintun. Removing wintun will cause `go mod vendor` to fail which is what some package managers use for installation.
2023-08-31Remove Windows support from libwgDavid Lönnhager5-264/+0
2023-08-31Stop building libwg and wireguard-go on WindowsDavid Lönnhager1-42/+4
2023-05-29Enable building universal app on ARM macOskar Nyberg1-7/+14
2023-03-27Fix many typosAlexander Seiler1-1/+1
Signed-off-by: Alexander Seiler <seileralex@gmail.com>
2023-03-14Migrate wg-go build script to use container helper scriptAlbin1-6/+1
This commit does not change anything for regular builds using build-apk.sh. This change migrates the wg build script from using the deprecated container image to using the new all-in-one Android image when building wireguard-go without the `--no-docker` argument.
2023-03-14Remove deprecated go dockerfileAlbin1-50/+0
2023-03-14Bump NDK min sdk to 26Albin1-4/+4
2023-03-14Bump NDK version to r25cAlbin1-7/+2
2022-08-23Update libwg script for cross compilationDavid Lönnhager1-10/+20
2022-08-23Build libwg for aarch64David Lönnhager1-1/+2
2022-08-15Use updated Docker image for building wireguard-goDavid Lönnhager1-1/+1
2022-08-15Fix Docker instructions for libwgDavid Lönnhager1-1/+1
2022-08-15Bump go patch versionDavid Lönnhager2-3/+3
2022-08-15Bump docker golang to 1.18.1Albin1-2/+2
2022-08-15Bump makefile golang to 1.18.1Albin1-1/+2
2022-08-15Unify golang download urlsAlbin2-2/+2
2022-08-15Tidy up old go packagesDavid Lönnhager2-76/+6
2022-08-15Update wireguard-goDavid Lönnhager3-21/+47
2022-06-14Implement wg config update for wireguard-goDavid Lönnhager1-0/+22
2022-01-14Handle IP interface configuration asynchronously for wgDavid Lönnhager1-1/+1
2021-12-16Split Android project and app moduleAlbin1-1/+1
The purpose of this is to: * Comply better with the default Android project structure (see https://developer.android.com/studio/build). * Avoid conflicts between project and app dependencies and plugins.
2021-09-21Retry tunnel creation without blocking state machineDavid Lönnhager1-22/+5
2021-09-21Retry wintun tunnel creation if it failsDavid Lönnhager1-5/+22
2021-06-02Give more time to IP interface setup on Windows, and make it abortableDavid Lönnhager1-44/+4
2021-05-27Make architecture names standardJanito Vaqueiro Ferreira Filho1-7/+8
`build-apk.sh` and `wireguard/libwg/build-android.sh` were using different names for the same architecture (x86/i686, arm/armv7, arm64/aarch64). Making it consistent helps to reuse the same `$ARCHITECTURES` environment variable for both scripts.
2021-05-25Update wireguard-go to v0.0.0-20210225140808Emīls2-6/+26
2021-04-21Add support for building universal macOS appOskar Nyberg1-2/+16
2021-03-22Set permissions for created build outputsJanito Vaqueiro Ferreira Filho1-1/+6
2021-03-22Manually strip `libwg.so`Janito Vaqueiro Ferreira Filho1-8/+17
2021-03-22Change built `libwg.so` output pathJanito Vaqueiro Ferreira Filho2-8/+4
Change the makefile to output to the path that will be used when building the `mullvad-jni` crate, then copy that file to the path where the APK build process will look for it. This is the reverse of how it was previously handled. The reason for doing is is that the APK library will be stripped, so having that be the output of the makefile will always cause `make` to rebuild it unnecessary if it's stripped in place. Therefore, we keep the `make` output library unstripped, and copy a stripped version to the APK path.
2021-03-22Use updated Docker imageJanito Vaqueiro Ferreira Filho1-1/+1
2021-03-22Define `NDK_TOOLCHAIN_DIR` in wg-go Docker imageJanito Vaqueiro Ferreira Filho1-0/+1
2021-03-17Update `go.mod` to use Go version 1.16Janito Vaqueiro Ferreira Filho1-1/+1
2021-03-17Replace `LinuxSocketBind` with std. `nativeBind`Janito Vaqueiro Ferreira Filho1-1/+1
2021-03-10Upgrade wireguard-goDavid Lönnhager7-64/+56
2021-03-10Rename DockerfileDavid Lönnhager1-0/+0
2021-03-10Update Android Docker imageDavid Lönnhager3-44/+47
2021-03-10Version Dockerfile for AndroidDavid Lönnhager1-0/+47
2021-02-26Allow building on Apple SiliconAndrii Yurchuk1-1/+5
2021-02-17Update copyright noticesDavid Lönnhager6-6/+6
2021-02-17Determine Wintun alias dynamically for WG tunnelDavid Lönnhager1-6/+12
2021-02-15Allow configuring architectures to build wg-goJanito Vaqueiro Ferreira Filho1-1/+2