Skip to content

Commit

Permalink
fix: daemons: start server on localhost (#104)
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Linville <[email protected]>
  • Loading branch information
g-linville authored Dec 16, 2024
1 parent 74e083d commit 8596761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gptscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`)
})
}

0 comments on commit 8596761

Please sign in to comment.