From 2c8f93a95bcf2948bcbd83f301ffbeee4c49d107 Mon Sep 17 00:00:00 2001 From: Sefinek Date: Wed, 25 Dec 2024 00:42:06 +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 80fc96e..3feccab 100644 --- a/services/axios.js +++ b/services/axios.js @@ -1,9 +1,9 @@ const axios = require('axios'); const { version } = require('../package.json'); -const { main } = require('../config.js'); +const { GITHUB_REPO } = require('../config.js').MAIN; axios.defaults.headers.common = { - 'User-Agent': `Mozilla/5.0 (compatible; UFW-AbuseIPDB-Reporter/${version}; +${main.GITHUB_REPO})`, + 'User-Agent': `Mozilla/5.0 (compatible; UFW-AbuseIPDB-Reporter/${version}; +${GITHUB_REPO})`, 'Accept': 'application/json', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive',