Skip to content

Commit 8596761

Browse files
authored
fix: daemons: start server on localhost (#104)
Signed-off-by: Grant Linville <[email protected]>
1 parent 74e083d commit 8596761

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gptscript.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,7 @@ export function startServer(server: https.Server) {
13251325
process.exit(1)
13261326
}
13271327

1328-
server.listen(port, () => {
1328+
server.listen(parseInt(port, 10), '127.0.0.1', () => {
13291329
console.log(`Server listening on port ${port}`)
13301330
})
13311331
}

0 commit comments

Comments
 (0)