Comparing version 1.2.3 to 1.2.4
@@ -260,3 +260,3 @@ 'use strict'; | ||
// TODO: 太暴力了,需要个简单的词法分析来精确判断 | ||
if (command.indexOf("|") !== -1 || command.indexOf("&") !== -1) { | ||
if (command.indexOf("|") !== -1 || command.indexOf(">") !== -1 || command.indexOf("&") !== -1) { | ||
that.sendResultMessage(id, new Error("命令行包含非法字符")); | ||
@@ -290,11 +290,4 @@ return; | ||
} | ||
var latestReport = new Date().getTime(); | ||
setInterval(function () { | ||
var current = new Date().getTime(); | ||
if (current - latestReport < 60 * 1000) { | ||
// ignore | ||
return; | ||
} | ||
if (that.state === AgentState.WORK) { // 未连接时忽略执行 | ||
latestReport = new Date(); | ||
order.run(function (err, params) { | ||
@@ -317,3 +310,3 @@ if (err) { | ||
} | ||
}, that.reportInterval); | ||
}, order.reportInterval || that.reportInterval); | ||
}); | ||
@@ -320,0 +313,0 @@ }; |
{ | ||
"name": "agentx", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"description": "agentx is powered by alinode", | ||
@@ -5,0 +5,0 @@ "scripts": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24887
13
824
7
2