From e636c3a0deec72dbee2eb14a49475096a0a9e6ea Mon Sep 17 00:00:00 2001 From: genteure Date: Sat, 14 Jan 2023 23:24:37 +0800 Subject: [PATCH] fix(core): disable script clr access --- BililiveRecorder.Core/Scripting/UserScriptRunner.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/BililiveRecorder.Core/Scripting/UserScriptRunner.cs b/BililiveRecorder.Core/Scripting/UserScriptRunner.cs index 493868b..3b21387 100644 --- a/BililiveRecorder.Core/Scripting/UserScriptRunner.cs +++ b/BililiveRecorder.Core/Scripting/UserScriptRunner.cs @@ -43,7 +43,6 @@ globalThis.recorderEvents = {}; .CatchClrExceptions() .LimitRecursion(100) .RegexTimeoutInterval(TimeSpan.FromSeconds(2)) - .AllowClr() .Configure(engine => { engine.Realm.GlobalObject.FastSetProperty("dns", new PropertyDescriptor(new JintDns(engine), writable: false, enumerable: false, configurable: false));