Change PAC address, refactor

This commit is contained in:
Ilya Ig. Petrov 2016-11-16 08:12:39 -08:00
parent 0aeae88bc4
commit b72611dda2
2 changed files with 6 additions and 4 deletions

View File

@ -35,8 +35,8 @@ window.antiCensorRu = {
}
},
Обаа_свитчах: {
//pacUrl: 'https://drive.google.com/uc?export=download&id=0B-ZCVSvuNWf0akpCOURNS2VCTmc',
pacUrl: 'https://drive.google.com/uc?export=download&id=0B-ZCVSvuNWf0WGczNmJzY3gzMWc', // Beta
//pacUrl: 'https://drive.google.com/uc?export=download&id=0B-ZCVSvuNWf0akpCOURNS2VCTmc', // 0.14
pacUrl: 'https://drive.google.com/uc?export=download&id=0B-ZCVSvuNWf0bzNUR2F4RF8wOU0', // 0.15
proxyHosts: ['proxy.antizapret.prostovpn.org', 'gw2.anticenz.org'],
proxyIps: {
'195.123.209.38': 'proxy.antizapret.prostovpn.org',

View File

@ -58,7 +58,9 @@ window.tabWithError2ip = {}; // For errors only: Error? -> Check this IP!
if (
!( window.antiCensorRu.pacProvider && window.antiCensorRu.pacProvider.proxyIps && window.antiCensorRu.pacProvider.proxyIps[ requestDetails.ip ] )
) return false;
) {
return false;
}
var ifMainFrame = requestDetails.type === 'main_frame';