feat: 添加arp支持,仅支持管理员模式

This commit is contained in:
2025-07-18 12:28:17 +08:00
parent 69c7cbf4d8
commit 12cd35edff
6 changed files with 109 additions and 47 deletions

View File

@@ -128,7 +128,7 @@ public class UDPServer
if (IsPortInUse(currentPort))
{
throw new ArgumentException(
$"Port {currentPort} is already in use.",
$"端口{currentPort}已被占用无法启动UDP Server",
nameof(port)
);
}