9 lines
205 B
C#
Raw Normal View History

2026-02-23 18:32:49 +08:00
Serve.Run(RunOptions.Default
.WithArgs(args)
.ConfigureBuilder(builder =>
{
// 确保容器内绑定到所有IP,端口9996
2026-04-26 09:42:57 +08:00
builder.WebHost.UseUrls("http://*:9997");
2026-02-23 18:32:49 +08:00
})
);