Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Bound Tailscale IPv6 endpoints are omitted from learned routes #34738

Closedcoygeek(GitHub profile, opens in a new tab) opened this issue 1 comment

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Use the checkout and dependencies below. Save the test in Relevant output or evidence as apps/server/src/environment/ipv6-route-repro.test.ts.
  2. From apps/server, run npx -y pnpm@12.14.0 exec vp test run src/environment/ipv6-route-repro.test.ts --reporter=verbose --silent=false.
  3. Observe that the valid Tailscale IPv6 address formats correctly for startup, but both explicit-bind and wildcard cases advertise an empty list.

The reduced probe was run once and passed all assertions about the current broken behavior. It uses synthetic network-interface data and real production modules. No live Tailscale daemon, full server bound to this example address, or client UI was exercised.

Expected behavior

A server bound to a supported Tailscale IPv6 address should report that tailnet endpoint for route learning. Remote architecture says a connected server reports the LAN and tailnet addresses it is bound to. The CLI host option accepts a Tailnet IP without restricting it to IPv4. The startup URL builder and shared host classification both accept this IPv6 fixture. Tailscale's IPv6 documentation identifies this prefix as its assigned IPv6 address space.

Restoration check

For the explicit-bind fixture, the advertised list includes a tailnet endpoint with http://[fd7a:115c:a1e0::1]:3773/; a wildcard bind includes it when present on the bound interfaces. Existing loopback and nonadvertisable-address exclusions remain effective. An integration check should verify that a client learns and can use this route.

Actual behavior

Observed in a focused test of the real modules: a bind to the example Tailscale address fd7a:115c:a1e0::1 produces startup URL http://[fd7a:115c:a1e0::1]:3773, and isTailnetHost recognizes it, but resolveBoundEndpoints returns []. An IPv6 wildcard bind with the same IPv6-only interface fixture also returns []. The route-learning consequence is source-only: DirectEndpoints.resolveAvailable passes that empty list to the server config, so clients cannot learn this address from directEndpoints.

Impact

Minor bug or occasional failure

Impact: P2 - Automatic discovery of a valid direct tailnet route is lost, requiring another route or explicit configuration of the IPv6 route.

Observed scope is endpoint generation for an explicit Tailscale IPv6 bind, plus an IPv6 wildcard bind with an IPv6-only interface fixture. This is an advertisement failure, not evidence that the HTTP listener rejects IPv6. NOT_ENOUGH_INFO: end-to-end client learning over a real tailnet was not run; a Tailscale-equipped host and client would establish that result. The documented Add route flow is a possible workaround, not a workaround exercised here.

Version or commit

main at c0c7405b04148f7fa3de5352d0e0aa149806c040; apps/server/package.json reports 0.1.9.

Environment

Linux 7.2.15-1-omarchy, x86_64; Node v26.13.1; pinned pnpm 12.14.0; Vite Plus test runner v5.0.5. Dependencies came from the checkout lockfile.

Logs or stack traces

Evidence provenance: observed module probe with synthetic interface data. Local verification: reproduced. Reproduction completeness: complete for endpoint generation; source-only for client integration. All example addresses are synthetic.

import { expect } from "vite-plus/test";
import { describe, it } from "vite-plus/test";
import { isTailnetHost } from "@t3tools/shared/hostClassification";
import { resolveBoundEndpoints } from "./DirectEndpoints.ts";
import { resolveHeadlessConnectionString } from "../startupAccess.ts";
const ipv6 = "fd7a:115c:a1e0::1";
const interfaces = { tailscale0: [{ address: ipv6, netmask: "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", family: "IPv6" as const, mac: "00:00:00:00:00:00", internal: false, cidr: `${ipv6}/128`, scopeid: 0 }] };
describe("agent D direct endpoint contract", () => {
  it("observes a supported Tailscale IPv6 URL but no advertised endpoint", () => {
    expect(isTailnetHost(ipv6)).toBe(true);
    expect(resolveHeadlessConnectionString(ipv6, 3773, {interfaces})).toBe(`http://[${ipv6}]:3773`);
    expect(resolveBoundEndpoints({platform:"linux", host:ipv6, port:3773, interfaces})).toEqual([]);
    expect(resolveBoundEndpoints({platform:"linux", host:"::", port:3773, interfaces})).toEqual([]);
    console.log("IPv6 startup URL", resolveHeadlessConnectionString(ipv6,3773,{interfaces}), "advertised", []);
  });
});

Observed output:

IPv6 startup URL http://[fd7a:115c:a1e0::1]:3773 advertised []
Test Files  2 passed (2)
Tests       2 passed (2)

Counts include an independent SSH-target probe run in the same invocation; the IPv6 test passed both empty-list assertions. DirectEndpoints.ts filters explicit binds through NodeNet.isIPv4 and wildcard interfaces through family === "IPv4". Config loading reports the result as directEndpoints; client route learning merges the endpoints the server reports.

Interface

API: ServerConfig.directEndpoints, consumed by client connection route learning.

Earliest failure stage

Output or presentation

Analysis

Source: both resolver paths exclude IPv6 before building endpoints, even though IPv6 identifies the Tailscale interface. The startup-URL and host-classifier controls rule out malformed input as the reason for omission.

References and duplicate search

searched open and closed issues for IPv6 advertised routes, DirectEndpoints, and Tailscale IPv6; no exact duplicate found. Issue #26450 concerns rejection of numeric IPv4 peer-link addresses, a different contract.

Workaround

No workaround was exercised in this investigation. See Impact for the documented alternatives and verification limits.

  1. tanstack-source added labelsbug

  2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:denounced

  3. Note

    Written by claude-fable-5-2 on behalf of Maria

    Closing: this account is denounced in .github/VOUCHED.td for filing automated issues faster than maintainers can triage them. A fix PR that links this issue is not affected by this close.

  4. maria-rcks closed this

Sign in to join this conversation.