Add backup url for antizapret pac-script

This commit is contained in:
ilyaigpetrov 2021-08-31 15:58:16 +00:00
parent 86d07b79c3
commit 1aec32de3e
4 changed files with 9 additions and 7 deletions

View File

@ -275,7 +275,10 @@
<br/> <a href="https://rebrand.ly/ac-pacs">Comparison of PAC-scripts (ru)</a>. <br/> <a href="https://rebrand.ly/ac-pacs">Comparison of PAC-scripts (ru)</a>.
\`, \`,
order: 0, order: 0,
pacUrls: ['https://antizapret.prostovpn.org/proxy.pac'], pacUrls: [
'https://antizapret.prostovpn.org/proxy.pac',
'https://rebrand.ly/ac-antizapret-pac',
],
}, },
Антицензорити: { Антицензорити: {
distinctKey: 'Anticensority', distinctKey: 'Anticensority',

View File

@ -87,7 +87,7 @@
"message": "Error" "message": "Error"
}, },
"Non_critical_error": { "Non_critical_error": {
"message": "Non-critical error" "message": "Non-critical error. Don't worry and go on"
}, },
"Donate": { "Donate": {
"message": "Donate" "message": "Donate"

View File

@ -87,7 +87,7 @@
"message": "Ошибка" "message": "Ошибка"
}, },
"Non_critical_error": { "Non_critical_error": {
"message": "Некритичная ошибка" "message": "Некритичная ошибка. Всё хорошо, продолжайте работу"
}, },
"Donate": { "Donate": {
"message": "Поддержать" "message": "Поддержать"

View File

@ -231,12 +231,11 @@
getIpsFor(hostStr, (err, ips, ...warns) => { getIpsFor(hostStr, (err, ips, ...warns) => {
console.log('Got IPs + err?:', ips, err); console.log('Got IPs + err?:', ips, err);
if (!err) { if (err) {
resolveIps(ips);
} else {
reject([err, null, ...warns]); reject([err, null, ...warns]);
return;
} }
resolveIps(ips);
}); });
}).then( }).then(