Wrap IPv6 literals with brackets. Fixes #323.
Merge pull request #332 from anders/fix-323

Wrap IPv6 literals with brackets. Fixes #323.