summaryrefslogtreecommitdiffhomepage
path: root/talpid-wireguard/src/connectivity
AgeCommit message (Collapse)AuthorFilesLines
2025-10-24Add DAITA stats to 'Stats'David Lönnhager3-47/+9
2025-10-24Integrate GotaTun cleanlyMarkus Pettersson1-8/+2
Refactor `trait Tunnel` and factor `start_daita` into `set_config`. Co-authored-by: Joakim Hulthe <joakim.hulthe@mullvad.net>
2025-09-23Upgrade `rand` to `0.9` in `talpid-wireguard`Markus Pettersson1-1/+1
Document why `rand` can't be upgraded in `wireguard_nt::daita`
2025-09-03Add last WG handshake to statsDavid Lönnhager3-0/+9
2025-07-10Run `cargo fmt`Sebastian Holmin3-25/+33
2025-05-26Add BoringtunJoakim Hulthe3-37/+47
Co-authored-by: Joakim Hulthe <joakim.hulthe@mullvad.net> Co-authored-by: Sebastian Holmin <sebastian.holmin@mullvad.net> Co-authored-by: David Göransson <david.goransson@mullvad.net> Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net> Co-authored-by: David Lönnhager <david.l@mullvad.net>
2025-02-27Use socket instead of ping command when pinging on androidJonatan Rhodin3-84/+14
Previous implementation spawned a process with tokio which in turn registered a signal handler without ONASTACK flag set. When using GO code, all signal handlers needs to have this flag set otherwise a signal might be handled on a goroutine thread which has a small stack and thus can overflow. Reference: DROID-1825 Co-authored-by: David Lönnhager <david.l@mullvad.net>
2025-02-25Reduce open_tun calls (Establish)David Göransson1-1/+11
Each call to Establish opens a window for leaks on android. By only invoking Establish if the VpnConfig if any of the input has changed and reusing it otherwise we avoid many of these leaks. This commit also waits for android to report back that the routes have been created to ping and verify connectivity to avoid pings going outside the tunnel.
2025-01-24Format codeDavid Lönnhager1-1/+1
2025-01-23Refactor connectivity check to be asyncDavid Lönnhager8-310/+384
2024-12-20Revert `force_wireguard_handshake` because it was brokenMarkus Pettersson1-1/+1
2024-12-19Remove 'force_wireguard_handshake' on non-WindowsDavid Lönnhager1-1/+3
The firewall blocks the pinger in some circumstances
2024-12-18Revert reset of pinger establish timeoutDavid Lönnhager1-2/+0
2024-12-18Reset connection monitor state and timeout between each ping attemptDavid Lönnhager1-0/+2
2024-12-18Force WireGuard handshake before PQ handshakeDavid Lönnhager1-3/+1
2024-12-12Remove some deprecated ref patternsJoakim Hulthe1-5/+1
2024-12-12Use dynamic DAITA machines in wireguard-goDavid Lönnhager1-1/+4
Co-authored-by: Markus Pettersson <markus.pettersson@mullvad.net>
2024-11-22Check that that tunnel can serve traffic after starting a new tunnelKalle Lindström9-0/+1351
- Split up "ConnectivityCheck" into more descriptive types and collect them in a new `connectivity` module. - Fix allow Wireguard-Go tunnel setup to be cancelled - Use retry param in connectivity check