summaryrefslogtreecommitdiffhomepage
path: root/talpid-wireguard/src/config.rs
AgeCommit message (Collapse)AuthorFilesLines
2025-10-08Block tunnel traffic when negotiating with an ephemeral peer on AndroidMarkus Pettersson1-0/+25
Patch tunnel config to block traffic to non-gateway destinations during PQ setup when using Boringtun on Android. Move `patch_allowed_ips` to `config` module.
2025-09-18Add multiplexer POC to daemon, TSM, and relay selectorDavid Lönnhager1-3/+3
2025-07-10Run `cargo fmt`Sebastian Holmin1-1/+1
2024-11-22Fix a lot of thingsMarkus Pettersson1-32/+52
- 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-22Add multihop negotiation with ephemeral peersKalle Lindström1-0/+7
Use `WgGoTunnel` directly on Android because a specialized implemenation of `set_config` has to be used.
2024-10-15Make unrelated changes to WireGuard config code to please compilerLinus Färnstrand1-3/+3
2024-09-02Set tunnel name to wg0-mullvad for wireguard-goDavid Lönnhager1-0/+4
Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>
2024-06-28Remove pointless firewall updateDavid Lönnhager1-4/+6
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-25Enable constant packet size for wireguard-goMarkus Pettersson1-0/+4
Activate the setting when DAITA is enabled and write constant packet size to WG config string. Co-authored-by: Sebastian Holmin <sebastian.holmin@mullvad.net>
2024-06-25Add a safe FFI wrapper in `wireguard-go-rs`Sebastian Holmin1-2/+2
- 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-16Add DAITA Windows client and updated tuncfgDavid Lönnhager1-0/+9
2024-02-27Replace err_derive with thiserrorJoakim Hulthe1-3/+3
`err_derive` is unmaintained and will probably stop working with rust edition 2024. `thiserror` is almost a drop-in replacement. This commit simply replaces all occurences of `derive(err_derive::Error)` with `derive(thiserror::Error)` and fixes the attributes, but the Error and Display impls should be identical.
2024-02-08Refactor default MTU calculationSebastian Holmin1-10/+8
2023-12-04Remove hidden assumptions from WireGuard configDavid Lönnhager1-45/+59
2023-08-31Remove wireguard-nt switchDavid Lönnhager1-5/+0
2023-04-17Log important settingsDavid Lönnhager1-5/+5
2023-02-28Add PQ support for multihop, and allow listing two endpoints in theJonathan1-1/+1
tunnel
2022-11-07Split up talpid-coreEmīls Piņķis1-0/+211