summaryrefslogtreecommitdiffhomepage
path: root/wireguard-go-rs/src
AgeCommit message (Collapse)AuthorFilesLines
2025-07-10Run `cargo fmt`Sebastian Holmin1-1/+1
2025-06-12Fix tun file descriptor ownershipJoakim Hulthe1-25/+40
We accidentally borrowed the file descriptor when we should have moved it. This commit adds more `OwnedFd` and friends to help handle ownership correctly. Signed-off-by: Joakim Hulthe <joakim.hulthe@mullvad.net>
2025-06-05Fix typosomahs1-6/+6
2025-05-14Use OnDrop from talpid-types in wggorsJoakim Hulthe2-19/+2
2025-02-12Format workspaceSebastian Holmin1-1/+1
The 2024 edition contains new formatting rules. All of these are not compatible with the 2021 formatting style, but most of them are. To change the formatting to be as close to the new style as possible while remaining compatible with the 2021 edition, I first ran `cargo +beta fmt` with the edition set to 2024, then, with the edition set to 2021, I ran `cargo fmt`.
2025-02-12Make extern block unsafeSebastian Holmin1-2/+2
2025-02-07Change maybenot-ffi hack, to always include it in workspace lockfileLinus Färnstrand1-1/+2
2025-01-24Exclude maybenot_ffi from toml file on AndroidDavid Lönnhager1-1/+1
2025-01-24Fix `wireguard-go-rs` build on non-Windows platformsMarkus Pettersson1-5/+3
2025-01-24Fix socket rebind on default route changes when using multihopDavid Lönnhager1-15/+6
2025-01-24Expose endpoint rebind functions in wireguard-go-rsDavid Lönnhager1-0/+20
2025-01-24Don't include maybenot_ffi on WindowsDavid Lönnhager1-20/+1
2025-01-24Build wireguard-go via wireguard-go-rs on WindowsDavid Lönnhager1-5/+96
2024-12-12Use dynamic DAITA machines in wireguard-goDavid Lönnhager1-0/+6
Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>
2024-11-22Fix a lot of thingsMarkus Pettersson1-1/+2
- Fix remaining rustc warnings on non-Android platforms - Fix lookup entry peer if it exists in wireguard-go - Fix talpid-wireguard not compiling on windows - Fix entry peer config code - Fix clippy issue - Fix Daita - Remove TODOs
2024-11-22Clean upJonatan Rhodin1-5/+4
- Fix outdated comment - Remove unused go function - Remove outdated TODO comment - Run `go fmt` on `libwg_android.go` - Document `AllowedTunnelTraffic`, `get_socket_v4` and `get_socket_v6`
2024-11-22Add initial multihop config on AndroidJonatan Rhodin1-6/+24
- Add some minor wireguard go changes
2024-11-22Add `wgTurnOnMultihop`Markus Pettersson1-0/+30
2024-11-22Use `core` instead of `std`Markus Pettersson1-2/+2
2024-11-01Add unit test for maybenot machines for wg-goDavid Lönnhager1-1/+20
2024-08-07Fix conversion from libwg error codesJoakim Hulthe1-3/+4
2024-06-25Link statically against libwgMarkus Pettersson1-0/+4
Co-authored-by: David Lönnhager <david.l@mullvad.net>
2024-06-25Add `daita` as a Cargo cfg variableMarkus Pettersson1-2/+2
Gate DAITA compilation on `"cargo::rustc-cfg=daita"` emitted in build files per platform.
2024-06-25Add a safe FFI wrapper in `wireguard-go-rs`Sebastian Holmin2-0/+303
- 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>