2. Given the function $y=\frac{a-x}{x-a-1}$, the graph of its inverse function is symmetric about the point $(-1,4)$. Then the value of the real number $a$ is $\qquad$ .
2.3.-

From the problem, we know that the graph of the function $y=\frac{a-x}{x-a-1}$ is centrally symmetric about the point $(4,-1)$.
$\because y=\frac{a-x}{x-a-1}=-1-\frac{1}{x-(a+1)}$, we have $(y+1)[x-(a+1)]=-1$,
$\therefore$ the graph of the function is a hyperbola with its center at $(a+1,-1)$.
Also, $\because$ the graph of the hyperbola is centrally symmetric about its center,
$\therefore a+1=4$, which means $a=3$.