diff --git a/proxy.pac b/proxy.pac index 70caa22..ee49088 100644 --- a/proxy.pac +++ b/proxy.pac @@ -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; }