Cloudflare-WAF-To-AbuseIPDB/services/axios.js
2024-09-16 22:30:23 +02:00

7 lines
No EOL
329 B
JavaScript

const axios = require('axios');
const { version } = require('../package.json');
axios.defaults.headers.common['User-Agent'] = `Mozilla/5.0 (compatible; WAF-To-AbuseIPDB/${version}; +https://github.com/sefinek24/Node-Cloudflare-WAF-AbuseIPDB)`;
axios.defaults.timeout = 12000;
module.exports = { axios, moduleVersion: version };