mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-22 20:12:02 -06:00
Update proxy controller to use a different IP lookup service
This commit is contained in:
parent
35520d85a2
commit
1e9b3a1e42
@ -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),
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user