add support for ipv6
Merge pull request #77 from giosg/master

add support for ipv6