Skip to content

Commit cad1780

Browse files
author
Codex CLI
committed
fix(security): avoid hardcoded all-interfaces bind in __main__
1 parent aed9a05 commit cad1780

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

claude_code_api/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ async def root():
225225

226226
uvicorn.run(
227227
"claude_code_api.main:app",
228-
host="0.0.0.0",
229-
port=8000,
228+
host=settings.host,
229+
port=settings.port,
230230
reload=True,
231-
log_level="info",
231+
log_level=settings.log_level.lower(),
232232
)

0 commit comments

Comments
 (0)