Commit 9d54008
committed
fix: exclude Tailscale CGNAT addresses from LAN endpoint selection
Tailscale IPs (100.64.0.0/10) were not excluded by isUsableLanIpv4Address,
so when a Tailscale interface was enumerated before a real LAN interface,
resolveLanAdvertisedHost would select the Tailscale IP as the LAN endpoint.
This caused duplicate entries in getDesktopAdvertisedEndpoints (one as
'Local network' from core, one as 'Tailscale IP' from the addon) and the
actual LAN IP would be missing entirely.
Add isTailscaleIpv4Address check to isUsableLanIpv4Address to prevent
Tailscale CGNAT addresses from being selected as LAN endpoints.1 parent ddb27a7 commit 9d54008
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
0 commit comments