Skip to content

IPv6 loopback binds can return an invalid server URL #203

Description

@youhaowei

Problem

Clawpatch flagged a low-priority API contract bug in server URL reporting for IPv6 loopback binds.

When the server is bound to an IPv6 loopback host, the returned URL can be formatted without the required bracketed IPv6 host syntax, producing an invalid URL for clients.

Evidence

Clawpatch run: 20260629T235052-baec0e

Finding: fnd_sig-feat-library-65745d6fa8-81f7_80e1c0882c

Relevant paths:

  • apps/server/src/index.ts around applyBind
  • apps/server/src/app.ts around isLoopbackHost
  • apps/server/src/app.ts around createDashframeServer
  • apps/server/src/app.test.ts existing bind behavior coverage

Expected fix

Normalize host formatting when constructing returned server URLs. IPv6 hosts should be bracketed, e.g. http://[::1]:PORT, while existing IPv4 and hostname behavior should remain unchanged.

Scope

Follow-up from PR #197 review. This is not introduced by the assistant read-layer changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions