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" } } },