路由回调
This commit is contained in:
parent
b7a4adfdcc
commit
4ef9468b77
@ -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");
|
||||
})
|
||||
);
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
"Kestrel": {
|
||||
"Endpoints": {
|
||||
"Http": {
|
||||
"Url": "http://*:5000"
|
||||
"Url": "http://*:9996"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user