mirror of
https://github.com/amnezia-vpn/DefaultVPN.git
synced 2026-10-13 21:32:42 +00:00
[PR #44] fix: detect stale iOS WireGuard tunnels #44
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
amnezia-vpn/DefaultVPN#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amnezia-vpn/DefaultVPN/pull/44
Author: @ibotpafos
Created: 8/13/2026
Status: 🔄 Open
Base:
dev← Head:fix/ios-wireguard-liveness📝 Commits (3)
d85db8ffix: detect stale iOS WireGuard tunnels1b7139dfix: include WireGuard liveness Swift sources121fbb1test: enforce iOS liveness checks [skip ci]📊 Changes
8 files changed (+134 additions, -10 deletions)
View changed files
📝
.github/workflows/deploy.yml(+8 -0)📝
client/ios/networkextension/CMakeLists.txt(+2 -0)📝
client/macos/networkextension/CMakeLists.txt(+2 -0)📝
client/platforms/ios/ios_controller.h(+1 -0)📝
client/platforms/ios/ios_controller.mm(+29 -10)➕
client/platforms/ios/wireguard_liveness.h(+49 -0)➕
client/platforms/ios/wireguard_liveness_test.cpp(+23 -0)➕
client/platforms/ios/wireguard_swift_sources_test.sh(+20 -0)📄 Description
What changes
Why
The previous check accepted any positive
last_handshake_time_sec, including a timestamp from an earlier connection. After an iOS path transition this could leave the UI at Connected while the tunnel no longer passed traffic.The 240-second stale window is intentionally conservative relative to WireGuard/AWG timers. The companion engine and bounded path-recovery changes are in amnezia-vpn/amneziawg-apple#40.
Validation
-Wall -Wextra -Werrorb17f0000e1a6e64e1087a14b64734ebc7a3a0d3b: https://github.com/ibotpafos/DefaultVPN/actions/runs/31755809362git diff --check🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.