This commit is contained in:
Sefinek 2024-12-25 00:40:19 +01:00
parent f0003a7f5a
commit 3dd173a53a
2 changed files with 3 additions and 3 deletions

View file

@ -35,7 +35,6 @@ exports.MAIN = {
* @param {boolean} logData.syn
* @param {string|null} fullLog
* @param {string|null} serverName
*
* @returns {string} A formatted string report.
*/
exports.REPORT_COMMENT = ({ timestamp, In, Out, srcIp, dstIp, res, tos, prec, ttl, id, proto, spt, dpt, len, urgp, mac, window, syn }, fullLog, serverName) => {

View file

@ -1,8 +1,9 @@
const axios = require('axios');
const { version } = require('../config.js');
const { version } = require('../package.json');
const { GITHUB_REPO } = require('../config.js');
axios.defaults.headers.common = {
'User-Agent': `Mozilla/5.0 (compatible; UFW-AbuseIPDB-Reporter/${version}; +https://github.com/sefinek/UFW-AbuseIPDB-Reporter)`,
'User-Agent': `Mozilla/5.0 (compatible; UFW-AbuseIPDB-Reporter/${version}; +${GITHUB_REPO})`,
'Accept': 'application/json',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',