@roflsec/fail2scan 0.0.20 → 0.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/bin/daemon.js +1 -1
  2. package/package.json +1 -1
package/bin/daemon.js CHANGED
@@ -5,7 +5,7 @@ const { execFile, spawn } = require('child_process');
5
5
  const { promisify } = require('util');
6
6
  const https = require('https');
7
7
  const execFileP = promisify(execFile);
8
- require('dotenv').config()
8
+ require('dotenv').config({ path: `${process.env.HOME}/.env`, quiet: true })
9
9
  // -------------------- CLI / CONFIG --------------------
10
10
  const argv = process.argv.slice(2);
11
11
  const getArg = (k,d) => { for(let i=0;i<argv.length;i++){const a=argv[i]; if(a===k&&argv[i+1]) return argv[++i]; if(a.startsWith(k+'=')) return a.split('=')[1]; } return d; };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roflsec/fail2scan",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "description": "Fail2Scan daemon - watches fail2ban logs and scans banned IPs using nmap, dig and whois.",
5
5
  "bin": {
6
6
  "fail2scan-daemon": "./bin/daemon.js"