Fix security issue: Exposed Remote Debug Interface with Arbitrary Code Execution Risk (CWE-489)
This commit is contained in:
parent
b1b4ae3d5f
commit
56a827e732
1 changed files with 2 additions and 2 deletions
|
|
@ -32,10 +32,10 @@ sleep 2
|
|||
if [ "$ENVIRONMENT" = "dev" ] || [ "$ENVIRONMENT" = "local" ]; then
|
||||
if [ "$DEBUG" = "true" ]; then
|
||||
echo "Waiting for the debugger to attach..."
|
||||
exec python -m debugpy --wait-for-client --listen 0.0.0.0:5678 -m cognee
|
||||
exec python -m debugpy --wait-for-client --listen 127.0.0.1:5678 -m cognee
|
||||
else
|
||||
exec cognee
|
||||
fi
|
||||
else
|
||||
exec cognee
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Reference in a new issue