Skip to content

HTTP Host doesn't accept IPv6 IPs #1615

@StephenButtolph

Description

@StephenButtolph

Describe the bug

The --http-host flag is passed in to the HTTP server to determine which addresses to bind on here.

We also attempt to resolve the --http-host to an IP to check to see if it is discoverable here.

When providing --http-host to the HTTP server, we append the port suffix. For IPv6 this means the --http-host must be boxed with [XXX]. However, that would cause the resolution of the IP to fail.

To Reproduce

Try to specify an --http-host with either [::1] or ::1. Both will fail.

Expected behavior

We should be able to specify IPv6 literal IPs.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingnetworkingThis involves networking

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions