Fix #775

Prefer IPv4 by default.