From 5785d6d6cf8a2c164168e197b24a881602bbb6e8 Mon Sep 17 00:00:00 2001 From: Sefinek Date: Wed, 25 Dec 2024 00:41:27 +0100 Subject: [PATCH] Fix --- services/axios.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/axios.js b/services/axios.js index a093ccf..80fc96e 100644 --- a/services/axios.js +++ b/services/axios.js @@ -1,9 +1,9 @@ const axios = require('axios'); const { version } = require('../package.json'); -const { GITHUB_REPO } = require('../config.js'); +const { main } = require('../config.js'); axios.defaults.headers.common = { - 'User-Agent': `Mozilla/5.0 (compatible; UFW-AbuseIPDB-Reporter/${version}; +${GITHUB_REPO})`, + 'User-Agent': `Mozilla/5.0 (compatible; UFW-AbuseIPDB-Reporter/${version}; +${main.GITHUB_REPO})`, 'Accept': 'application/json', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive',