Fix wrong type of alterId in Clash VMess nodes (#325).
Fix broken parsing of ShadowsocksR subscription.
Fix possible crash when running scripts.
This commit is contained in:
Tindy X committed 2021-03-24 22:18:44 +08:00
1 parent b42bfec5f1
commit fe20b2d26c
4 files changed
+20 -26

No files matched your search

+3 -6
View File
@@ -1526,15 +1526,12 @@ std::string subconverter(RESPONSE_CALLBACK_ARGS)
lExcludeRemarks = string_array{argExcludeRemark};
/// initialize script runtime
if(authorized)
if(authorized && !gScriptCleanContext)
{
ext.js_runtime = new qjs::Runtime();
script_runtime_init(*ext.js_runtime);
if(!gScriptCleanContext)
{
ext.js_context = new qjs::Context(*ext.js_runtime);
script_context_init(*ext.js_context);
}
ext.js_context = new qjs::Context(*ext.js_runtime);
script_context_init(*ext.js_context);
}
//start parsing urls