We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a130c78 commit 4d22be7Copy full SHA for 4d22be7
packages/web-koa/src/framework.ts
@@ -326,12 +326,11 @@ export class MidwayKoaFramework extends BaseFramework<
326
327
if (customPort === 0 || customPort === '0') {
328
customPort = await getFreePort();
329
- this.configurationOptions.listenOptions.port = customPort;
330
this.logger.info(
331
`Midway koa is listening on port ${customPort} (auto assigned)`
332
);
333
}
334
-
+ this.configurationOptions.listenOptions.port = Number(customPort);
335
if (this.configurationOptions.listenOptions.port) {
336
new Promise<void>(resolve => {
337
// 使用 ListenOptions 对象启动服务器
0 commit comments