A:取消固定调试端口

This commit is contained in:
jimmy committed 2025-08-18 13:58:20 +08:00
1 parent 09414e3a44
commit 5fc1f86c1b
1 file changed
+3 -3
@@ -121,12 +121,12 @@ public class ServerStartupManager
private void StartStaticFileServer()
{
// int port = SysHelper.GetAvailablePort();
int port = 3000;
int port = SysHelper.GetAvailablePort();
// int port = 3000;
AppConfig.Instance.HttpPort = port;
AppConfig.Instance.HttpPath = $"http://127.0.0.1:{port}";
// _staticFileServer.Start(AppConfig.Instance.HttpPort);
_staticFileServer.Start(AppConfig.Instance.HttpPort);
}
public void Stop()