const axiosDefaultConfig = {
timeout: 2500,
proxy: false,
httpsAgent: new HttpsProxyAgent(proxy_agent)
};
const axios = require('axios').create(axiosDefaultConfig);
return axios.get(url)
.then(function (response) {
return Promise.resolve(true);
})
.catch(function (error) {
return Promise.resolve(false);
});