取消端口复用

This commit is contained in:
老九 2021-09-04 15:54:36 +08:00
parent 4c159ae3e1
commit 413543753a

View File

@ -58,7 +58,6 @@ namespace FastGithub.Dns
try
{
this.socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.ReuseAddress, true);
this.socket.Bind(new IPEndPoint(address, port));
}
catch (SocketException ex) when (ex.SocketErrorCode == SocketError.AccessDenied)