add more proxy and windows update domains

This commit is contained in:
2025-10-15 14:36:48 +03:00
parent 375563d073
commit 576347b59d

View File

@@ -1,5 +1,5 @@
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
var proxyDomains = [
@@ -47,10 +47,20 @@ function FindProxyForURL(url, host) {
"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)
var directDomains = [
"mail.google.com", "meet.google.com",
"zblv.ru", "*.zblv.ru"
"zblv.ru", "*.zblv.ru",
"*.ru"
];
// Function to check if host matches any pattern
@@ -74,7 +84,7 @@ function FindProxyForURL(url, host) {
}
// Proxy for matched domains
if (matchesAny(host, proxyDomains) || matchesAny(host, googleDomains)) {
if (matchesAny(host, proxyDomains) || matchesAny(host, googleDomains) || matchesAny(host, windowsUpdateDomains)) {
return proxy;
}