fix: resolve discovery, plugins, and vault issues

This commit is contained in:
2026-08-02 18:45:16 -04:00
parent 5c3a8cefe1
commit 1cb693a1eb
11 changed files with 86 additions and 23 deletions
+6
View File
@@ -34,7 +34,13 @@ module.exports = {
// OsAndPortScan requires root (for -O). NmapScan does a basic port scan (TCP connect if non-root).
const scan = new nmap.NmapScan(targetRange);
scan.command.push('-Pn');
scan.command.push('-F'); // fast scan, 100 top ports
scan.command.push('--min-rate', '100'); // speed up the scan
if (config.log) config.log(`Starting nmap scan: ${scan.command.join(' ')}`);
scan.on('complete', function(data) {
if (config.log) config.log(`Scan complete. Found ${data ? data.length : 0} hosts.`);
const resources = [];
const edges = [];
+1 -1
View File
@@ -35,7 +35,7 @@ module.exports = {
},
discover: async (config) => {
const { url, tokenId, tokenSecret } = config;
let { url, tokenId, tokenSecret } = config;
if (!url || !tokenId || !tokenSecret) {
throw new Error("Missing Proxmox config");
}