Fix
This commit is contained in:
parent
f0003a7f5a
commit
3dd173a53a
2 changed files with 3 additions and 3 deletions
|
|
@ -35,7 +35,6 @@ exports.MAIN = {
|
||||||
* @param {boolean} logData.syn
|
* @param {boolean} logData.syn
|
||||||
* @param {string|null} fullLog
|
* @param {string|null} fullLog
|
||||||
* @param {string|null} serverName
|
* @param {string|null} serverName
|
||||||
*
|
|
||||||
* @returns {string} A formatted string report.
|
* @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) => {
|
exports.REPORT_COMMENT = ({ timestamp, In, Out, srcIp, dstIp, res, tos, prec, ttl, id, proto, spt, dpt, len, urgp, mac, window, syn }, fullLog, serverName) => {
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
const { version } = require('../config.js');
|
const { version } = require('../package.json');
|
||||||
|
const { GITHUB_REPO } = require('../config.js');
|
||||||
|
|
||||||
axios.defaults.headers.common = {
|
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',
|
'Accept': 'application/json',
|
||||||
'Cache-Control': 'no-cache',
|
'Cache-Control': 'no-cache',
|
||||||
'Connection': 'keep-alive',
|
'Connection': 'keep-alive',
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue