diff --git a/src/gptscript.ts b/src/gptscript.ts index bea6175..baa8a15 100644 --- a/src/gptscript.ts +++ b/src/gptscript.ts @@ -1325,7 +1325,7 @@ export function startServer(server: https.Server) { process.exit(1) } - server.listen(port, () => { + server.listen(parseInt(port, 10), '127.0.0.1', () => { console.log(`Server listening on port ${port}`) }) }