Skip to content

Commit 1aa4dc5

Browse files
Merge pull request #198 from bunkerity/dev
2 parents 63de9b9 + d07d07a commit 1aa4dc5

7 files changed

Lines changed: 18 additions & 6 deletions

File tree

clamav/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "clamav",
33
"name": "ClamAV",
44
"description": "Automatic scan of uploaded files with ClamAV antivirus engine.",
5-
"version": "1.9",
5+
"version": "1.10",
66
"stream": "no",
77
"settings": {
88
"USE_CLAMAV": {

coraza/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "coraza",
33
"name": "Coraza",
44
"description": "Use Coraza as a library to inspect client request.",
5-
"version": "1.9",
5+
"version": "1.10",
66
"stream": "no",
77
"settings": {
88
"USE_CORAZA": {

discord/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "discord",
33
"name": "Discord",
44
"description": "Send alerts to a Discord channel (using webhooks).",
5-
"version": "1.9",
5+
"version": "1.10",
66
"stream": "yes",
77
"settings": {
88
"USE_DISCORD": {

slack/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "slack",
33
"name": "Slack",
44
"description": "Send alerts to a Slack channel (using webhooks).",
5-
"version": "1.9",
5+
"version": "1.10",
66
"stream": "partial",
77
"settings": {
88
"USE_SLACK": {

virustotal/plugin.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "virustotal",
33
"name": "VirusTotal",
44
"description": "Automatic scan of uploaded files and ips optionally with the VirusTotal API.",
5-
"version": "1.9",
5+
"version": "1.10",
66
"stream": "partial",
77
"settings": {
88
"USE_VIRUSTOTAL": {
@@ -23,6 +23,15 @@
2323
"regex": "^.*$",
2424
"type": "password"
2525
},
26+
"VIRUSTOTAL_TIMEOUT": {
27+
"context": "global",
28+
"default": "1000",
29+
"help": "Timeout in milliseconds for VirusTotal API requests.",
30+
"id": "virustotal-timeout",
31+
"label": "API timeout (ms)",
32+
"regex": "^[0-9]+$",
33+
"type": "text"
34+
},
2635
"VIRUSTOTAL_SCAN_FILE": {
2736
"context": "multisite",
2837
"default": "yes",

virustotal/virustotal.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,9 @@ function virustotal:request(url)
248248
if not httpc then
249249
return false, err
250250
end
251+
-- Set timeouts for connect, send, and read
252+
local timeout = tonumber(self.variables["VIRUSTOTAL_TIMEOUT"]) or 1000
253+
httpc:set_timeouts(timeout, timeout, timeout)
251254
-- Send request
252255
local res
253256
res, err = httpc:request_uri("https://www.virustotal.com/api/v3" .. url, {

webhook/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "webhook",
33
"name": "WebHook",
44
"description": "Send alerts to a custom webhook.",
5-
"version": "1.9",
5+
"version": "1.10",
66
"stream": "yes",
77
"settings": {
88
"USE_WEBHOOK": {

0 commit comments

Comments
 (0)