Wrap Kubernetes host address in square brackets
Wrap Kubernetes host address in square brackets

When constructing the host address string, the address is
not wrapped in square brackets. This does not work in IPv6
Kubernetes deployments. This commit adds square brackets
around the address. IPv4 was also tested to ensure it works
with wrapped address.

Signed-off-by: Jerry Sun <a8afe4ee22261e20e59f1729f5fca7b3dc6a4492@windriver.com>

ericchiang/dex,wolfeidau/dex,wolfeidau/dex,coreos/dex,wolfeidau/dex,coreos/dex,coreos/dex,ericchiang/dex,ericchiang/dex