add more proxy and windows update domains
This commit is contained in:
16
proxy.pac
16
proxy.pac
@@ -1,5 +1,5 @@
|
|||||||
function FindProxyForURL(url, host) {
|
function FindProxyForURL(url, host) {
|
||||||
var proxy = "PROXY proxy.vm:8118; DIRECT";
|
var proxy = "PROXY proxy.vm:8118; SOCKS5 proxy.vm:1080, DIRECT";
|
||||||
|
|
||||||
// Domains that should go through the proxy
|
// Domains that should go through the proxy
|
||||||
var proxyDomains = [
|
var proxyDomains = [
|
||||||
@@ -47,10 +47,20 @@ function FindProxyForURL(url, host) {
|
|||||||
"jnn-pa.googleapis.com", "l.google.com"
|
"jnn-pa.googleapis.com", "l.google.com"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
var windowsUpdateDomains = [
|
||||||
|
|
||||||
|
".windowsupdate.com", ".download.windowsupdate.com",
|
||||||
|
".update.microsoft.com", ".delivery.mp.microsoft.com",
|
||||||
|
".download.microsoft.com", ".catalog.update.microsoft.com",
|
||||||
|
".officecdn.microsoft.com", ".nsatc.net"
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
// Domains that should go directly (without proxy)
|
// Domains that should go directly (without proxy)
|
||||||
var directDomains = [
|
var directDomains = [
|
||||||
"mail.google.com", "meet.google.com",
|
"mail.google.com", "meet.google.com",
|
||||||
"zblv.ru", "*.zblv.ru"
|
"zblv.ru", "*.zblv.ru",
|
||||||
|
"*.ru"
|
||||||
];
|
];
|
||||||
|
|
||||||
// Function to check if host matches any pattern
|
// Function to check if host matches any pattern
|
||||||
@@ -74,7 +84,7 @@ function FindProxyForURL(url, host) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Proxy for matched domains
|
// Proxy for matched domains
|
||||||
if (matchesAny(host, proxyDomains) || matchesAny(host, googleDomains)) {
|
if (matchesAny(host, proxyDomains) || matchesAny(host, googleDomains) || matchesAny(host, windowsUpdateDomains)) {
|
||||||
return proxy;
|
return proxy;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user