proxy address format is not IPv6 compatible #5460
Labels
good first issue
A well-defined bug or improvement with sufficient context which should be approachable for new contr
theme/connect
Anything related to Consul Connect, Service Mesh, Side Car Proxies
type/bug
Feature does not function as expected
Overview of the Issue
consul connect proxy public address is not escaped correctly for IPv6 addresses when making connection to upstream.
There is a Sprintf in https://github.com/hashicorp/consul/blob/master/connect/proxy/config.go which doesn't take into account a proper format for IPv6 addresses ( line 116 )
Reproduction Steps
Steps to reproduce this issue, eg:
consul connect proxy -service postgres -service-addr 172.17.0.3:5432 -listen [fc01::1]:15432 -register
consul connect proxy -service web -upstream postgres:5432
Consul info for both Client and Server
Client info
Server info
Operating system and Environment details
Ubuntu 18.04
The text was updated successfully, but these errors were encountered: