Update proxy controller to use a different IP lookup service

This commit is contained in:
Judson Junior 2024-01-21 13:01:06 -03:00
parent 35520d85a2
commit 1e9b3a1e42

View File

@ -55,9 +55,9 @@ export class ProxyController {
if (username && password) {
proxyUrl = `${protocol}://${username}:${password}@${host}:${port}`;
}
const serverIp = await axios.get('http://meuip.com/api/meuip.php');
const response = await axios.get('http://meuip.com/api/meuip.php', {
const serverIp = await axios.get('https://icanhazip.com/');
const response = await axios.get('https://icanhazip.com/', {
httpsAgent: new HttpsProxyAgent(proxyUrl),
});