13 lines
No EOL
392 B
JavaScript
13 lines
No EOL
392 B
JavaScript
const axios = require('axios');
|
|
const { version } = require('../config.js');
|
|
|
|
axios.defaults.headers.common = {
|
|
'User-Agent': `Mozilla/5.0 (compatible; UFW-AbuseIPDB-Reporter/${version}; +https://github.com/sefinek/UFW-AbuseIPDB-Reporter)`,
|
|
'Accept': 'application/json',
|
|
'Cache-Control': 'no-cache',
|
|
'Connection': 'keep-alive',
|
|
};
|
|
|
|
axios.defaults.timeout = 30000;
|
|
|
|
module.exports = axios; |