add ipv6 support
Merge branch 'pull-52'

Fix #52.