client: Add IPv6Only support

Fixes #1.