From ced20bfe38ded52f7deb12f54a18743724f490ef Mon Sep 17 00:00:00 2001 From: ansaries Date: Thu, 6 Oct 2022 04:11:50 +0500 Subject: [PATCH] Added check to include options.ports on line 313 Cannot scan for multiple IPs and Ports if this check is not included. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 21744cc..bf79350 100644 --- a/src/index.js +++ b/src/index.js @@ -310,7 +310,7 @@ class Evilscan extends EventEmitter { _portScanFormatResult(data, result) { - if (!result || !this.options.port || !data) { + if (!result || !(this.options.port || this.options.ports) || !data) { return result; }