Retrieve reachable addresses only.

AI_ADDRCONFIG helps not to try to connect unreachable ipv6 address if
user doesn't have ipv6 network stack.
Merge pull request #634 from youknowone/ipv6

Retrieve reachable addresses only.