Skip to content

IPv6 literal host: channel target is invalid for a bare IPv6 address #172

Closed

Description

@ivandasch

Description

QdrantGrpcClient.newBuilder(host, port, useTls) with a bare IPv6 literal, e.g. newBuilder("fd00::1", 6334, false), fails to connect: ManagedChannelBuilder.forAddress("fd00::1", 6334) builds the channel target dns:///fd00::1:6334, which gRPC cannot parse — an IPv6 literal in an authority must be bracketed.

Workaround

Pass the host pre-bracketed: newBuilder("[fd00::1]", 6334, false).

Expected

Bare IPv6 literals should be bracketed automatically. The Go client already does this (net.JoinHostPort, config.go#getAddr).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions