Fix
This commit is contained in:
parent
3dd173a53a
commit
5785d6d6cf
1 changed files with 2 additions and 2 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
const axios = require('axios');
|
const axios = require('axios');
|
||||||
const { version } = require('../package.json');
|
const { version } = require('../package.json');
|
||||||
const { GITHUB_REPO } = require('../config.js');
|
const { main } = require('../config.js');
|
||||||
|
|
||||||
axios.defaults.headers.common = {
|
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',
|
'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