madjinn
a3dc1977a8
Move the peer to the local winner after a local fallback
...
When the active local endpoint fails, rapidTestOnLocalFallback races the
public endpoint against the remaining local candidates. If a local
candidate wins, RapidTestLocalEndpoints records it as the active local
endpoint but leaves the WireGuard peer alone. The caller is meant to move
the peer, but only did so when no local endpoint was active, which is
never the case once the winner has been recorded.
The peer therefore stayed on the public endpoint while the monitor
treated the site as local: checkLocalEndpoints kept seeing the winner
answer and checkHolepunchEndpoints skipped the site, so nothing moved the
peer or requested relay. A client that can't reach the site's public
endpoint (e.g. one on the site's LAN behind a router without NAT
hairpinning) lost the site until it was restarted.
Move the peer when the winner is still the active local endpoint.
Introduced in 3d88b32 ("Rapid test again when we fail local").
2026-10-07 01:53:31 +02:00
Owen
e04e7e0bcf
Support batched relay,unrelay,local,unlocal messages
2026-09-24 11:55:53 -04:00
Owen
ef1db9a676
properly handle icmp over tunnel for automatic testing
2026-08-05 16:16:18 -04:00
Owen
202606917c
icmp monitor the exit node for connectivity and provide in api status
2026-08-05 10:33:43 -04:00
Owen
3d88b321e8
Rapid test again when we fail local
2026-07-17 15:55:31 -04:00
Owen
e1214e21cd
Reflect local status in the api
2026-07-17 13:58:20 -04:00
Owen
a2f0f64c2f
Cancel local send from chainId
2026-07-16 11:29:55 -04:00
Owen
0e06fb0152
Rapid test the local endpoints as well
2026-07-16 11:11:02 -04:00
Owen
7929ce9cf9
Test local connections and choose those first
2026-07-16 10:57:42 -04:00
Owen
efc012b43d
Groundwork for monitoring and updating the dns
2026-06-25 20:21:25 -04:00
Owen
6eaf8c1475
Basic route selector working
2026-04-13 18:24:11 -07:00
Owen
e326da3d3e
Merge branch 'dev' into jit
2026-03-12 16:53:16 -07:00
Owen
b3cb3e1c92
Add hardcoded public dns
2026-03-12 16:50:41 -07:00
Owen
809dbe77de
Make chainId in relay message bckwd compat
2026-03-06 15:27:03 -08:00
Owen
c67c2a60a1
Handle canceling sends for relay
2026-03-06 15:15:31 -08:00
Owen
25cb50901e
Quiet up logs again
...
Former-commit-id: 112283191c
2026-01-18 12:18:48 -08:00
Owen
3ba1714524
Power state getting set correctly
...
Former-commit-id: 0895156efd
2026-01-14 16:38:40 -08:00
Owen
3470da76fc
Update resetting intervals
...
Former-commit-id: 303c2dc0b7
2026-01-14 12:32:29 -08:00
miloschwartz
dada0cc124
add low power state for testing
...
Former-commit-id: 996fe59999
2026-01-13 14:30:02 -08:00
Owen
20e0c18845
Try to reduce cpu when idle
...
Former-commit-id: ba91478b89
2026-01-12 12:29:42 -08:00
Owen
5b637bb4ca
Add expo backoff
...
Former-commit-id: faae551aca
2026-01-12 12:20:59 -08:00
Owen
7f6c824122
Pull 21820 from config
...
Former-commit-id: 56f4614899
2025-12-16 18:36:04 -05:00
Owen
3ceef1ef74
Small adjustments
...
Former-commit-id: df1c2c18e0
2025-12-10 14:06:36 -05:00
Owen
acb0b4a9a5
Fix ipv6 connectivity
...
Former-commit-id: 61065def17
2025-12-10 10:34:30 -05:00
Owen
28583c9507
HP working better
...
Former-commit-id: 98b6012a5e
2025-12-03 20:49:09 -05:00
Owen
4b8b281d5b
Fixing small things
...
Former-commit-id: e898d4454f
2025-12-03 15:14:08 -05:00
Owen
293e507000
Fix exit
...
Former-commit-id: a2334cc5af
2025-12-02 21:23:28 -05:00
Owen
c948208493
Update monitor
...
Former-commit-id: 0b87070e31
2025-12-02 11:17:19 -05:00
Owen
2106734aa4
Clean up and add unrelay
...
Former-commit-id: 01586510f3
2025-12-02 10:45:30 -05:00
Owen
51162d6be6
Further adjust structure to include peer monitor
...
Former-commit-id: 5a2918b2a4
2025-12-01 21:55:11 -05:00
Owen
45ef6e5279
Migrate peer monitor into peer manager
...
Former-commit-id: 29f0babf07
2025-12-01 21:28:14 -05:00