fixes #21
Merge pull request #22 from nullivex/master

fixes #21 (addresses with brackets and no port number)