Repository navigation
Description
Area
apps/desktop
Steps to reproduce
- macOS host with the T3 Code desktop app (0.1.11), Network access on. NetBird is the only VPN (
utun100, an address in100.64.0.0/10). Tailscale is not installed. - Open Settings → Sharing & access and create a pairing link.
- Look at the addresses offered for the link.
Expected behavior
The host's NetBird address is offered for pairing, labelled VPN. The clients already have this route kind and label (#17158).
Actual behavior
The list offers loopback, one LAN address, and Tailscale. There is no link or QR code for the NetBird address, and no error or hint. A device that is away from the LAN cannot be paired from the desktop UI.
This is a regression. Before #15753 the NetBird address was listed under Tailscale, and pairing an iPad and an iPhone over NetBird worked. NetBird is a WireGuard mesh VPN like Tailscale and uses the same 100.64.0.0/10 range. The server still accepts connections from that range, and the devices paired earlier kept working over NetBird until their sessions expired. Only the way to create a new pairing over that address is gone.
Diagnosis
- fix(desktop): exclude unrelated VPN addresses from Tailscale pairing #15753 (
apps/desktop/src/backend/tailscaleEndpointProvider.ts) correctly stopped labelling other VPNs as Tailscale: an address in100.64.0.0/10is listed only when the interface is a Tailscale interface ortailscale statusnames the address. - Nothing lists the excluded addresses instead.
resolveLanAdvertisedHostinapps/desktop/src/backend/DesktopServerExposure.tspicks one LAN address and prefers interfaces that are notutun, so the NetBird address is never chosen while a LAN address exists. - The server does report the address:
resolveBoundEndpointsinapps/server/src/environment/DirectEndpoints.tsreturns it with kindlan, so a device paired over the LAN can learn it as a VPN route.
Environment
- Host: macOS (arm64), T3 Code desktop 0.1.11, NetBird 0.82.0 (userspace WireGuard), no Tailscale.
- Clients: iPadOS and iOS app 2.3.0 with NetBird.
Related
- Windows virtual adapters and macOS VPN tunnels are advertised as LAN routes #17246 and fix(server): stop advertising Windows hotspot and VPN tunnel addresses as LAN routes #25991 remove tunnel addresses in
198.18.0.0/15from the reported routes. A NetBird address in100.64.0.0/10is reachable by the other peers, so it should stay reported.
Workaround
On the device, add the machine or a route by hand: type http://<netbird-ip>:3773 and a pairing code from the host's Sharing & access.
Filed with an AI agent (Claude Fable 5.2 in T3 Code) after reading the host's server log and the code on main at 3806763022.
Activity