This commit is contained in:
Sefinek 2024-12-25 01:04:02 +01:00
parent 58e45103bc
commit 3c1fa403b3

View file

@ -13,7 +13,7 @@ let fileOffset = 0;
const reportToAbuseIPDb = async (logData, categories, comment) => {
try {
const { data } = await axios.post('https://api.abuseipdb.com/api/v2/report', new URLSearchParams({ ip: logData.ip, categories, comment }), {
const { data } = await axios.post('https://api.abuseipdb.com/api/v2/report', new URLSearchParams({ ip: logData.srcIp, categories, comment }), {
headers: { 'Key': ABUSEIPDB_API_KEY },
});