remove [] from socket bind on ipv4 address

Signed-off-by: Thomas Stilwell <stilwellt@openlabs.co>
only add [] to the uri if a proper ipv6 address is detected

Signed-off-by: Thomas Stilwell <stilwellt@openlabs.co>
Merge pull request #350 from benemorius/ipv6-fix

ipv6-regression-fix