Add IPv6 support (#68).

Fixed #68.