diff --git a/default.config.js b/default.config.js index 843fb80..a7350d5 100644 --- a/default.config.js +++ b/default.config.js @@ -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) => { diff --git a/services/axios.js b/services/axios.js index 3534d7a..a093ccf 100644 --- a/services/axios.js +++ b/services/axios.js @@ -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',