Skip to content

Commit 4d19775

Browse files
committed
Added INTERPRETER_REQUIRE_AUTH env var
1 parent 3645cd6 commit 4d19775

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

interpreter/core/async_core.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,10 @@ async def receive_input():
443443
return
444444
data = await websocket.receive()
445445

446-
if not authenticated:
446+
if (
447+
not authenticated
448+
and os.getenv("INTERPRETER_REQUIRE_AUTH") != "False"
449+
):
447450
if "text" in data:
448451
data = json.loads(data["text"])
449452
if "auth" in data:

0 commit comments

Comments
 (0)