From 4ef9468b779b707a799d3773206d73bf09a689ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=A2=93=E5=BD=AD?= Date: Tue, 8 Sep 2026 16:51:52 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- YD_Event.Web.Entry/Program.cs | 6 +++--- YD_Event.Web.Entry/appsettings.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/YD_Event.Web.Entry/Program.cs b/YD_Event.Web.Entry/Program.cs index d46bebb..d9e9e44 100644 --- a/YD_Event.Web.Entry/Program.cs +++ b/YD_Event.Web.Entry/Program.cs @@ -1,8 +1,8 @@ -Serve.Run(RunOptions.Default +Serve.Run(RunOptions.Default .WithArgs(args) .ConfigureBuilder(builder => { - // 本地裁判端联调统一使用 5000 端口,并绑定全部网卡供 adb reverse 转发。 - builder.WebHost.UseUrls("http://*:5000"); + // 确保容器内绑定到所有IP,端口9996 + builder.WebHost.UseUrls("http://*:9996"); }) ); diff --git a/YD_Event.Web.Entry/appsettings.json b/YD_Event.Web.Entry/appsettings.json index c8594d6..5f145c5 100644 --- a/YD_Event.Web.Entry/appsettings.json +++ b/YD_Event.Web.Entry/appsettings.json @@ -10,7 +10,7 @@ "Kestrel": { "Endpoints": { "Http": { - "Url": "http://*:5000" + "Url": "http://*:9996" } } },