fix: wrong console message in case http is disabled
Massimo Melina committed
Jul 5, 2025 at 12:21 UTC
9cd30aa637b7378849f77a79b947df2587b5ce37
1 file changed
+2
-1
src/listen.ts
+2
-1
@@ -51,9 +51,10 @@ const considerHttp = debounceAsync(async () => {
51
httpSrv = Object.assign(http.createServer(commonServerOptions, app.callback()), { name: 'http' }, commonServerAssign)
52
const host = listenInterface.get()
53
const port = portCfg.get()
54
+ if (port === PORT_DISABLED) return
55
if (!await startServer(httpSrv, { port, host }))
56
if (port !== 80)
56
- return console.log(` >> try specifying a different port, enter this command: config ${portCfg.key()} 1080`)
57
+ return console.log(`HINT: try specifying a different port, enter this command: config ${portCfg.key()} 1080`)
58
else if (!await startServer(httpSrv, { port: 8080, host }))
59
return
60
httpSrv.on('connection', newConnection)