Add flag to prefer ipv4 stack.