support ipv6 if available (requires luasocket 3.x)