Skip to content

GCE_METADATA_HOST env does not work with IPv6 addresses #2591

Description

@marqc

Steps to reproduce

  1. Set custom GCE_METADATA_HOST env variable to IPv6 address, i.e. ::1
  2. Observe application is trying to call invalid URL http://::1 instead of expected http://[::1]

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

    priority: p3Desirable enhancement or fix. May not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions