only add [] to the uri if a proper ipv6 address is detected

Signed-off-by: Thomas Stilwell <stilwellt@openlabs.co>