mirror of
https://codeberg.org/postscriptum/pac.git
synced 2026-04-01 05:25:28 +00:00
initial commit
This commit is contained in:
parent
ff682b27cf
commit
09655f6b16
1 changed files with 32 additions and 0 deletions
32
internet.pac
Normal file
32
internet.pac
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
// Clearnet asset
|
||||
|
||||
function FindProxyForURL(url, host)
|
||||
{
|
||||
var whitelist = [
|
||||
"censor.net",
|
||||
"codeberg.org",
|
||||
"devzone.org.ua",
|
||||
"github.com",
|
||||
"gmail.com",
|
||||
"google.com",
|
||||
"linux.org.ua",
|
||||
"linuxmint.com.ua",
|
||||
"lostfilm.tv",
|
||||
"mazepa.to",
|
||||
"opennet.me",
|
||||
"protonmail.com",
|
||||
"rutracker.org",
|
||||
"toloka.to",
|
||||
"tuta.com",
|
||||
"unian.ua",
|
||||
"wikipedia.org",
|
||||
"youtube.com",
|
||||
];
|
||||
|
||||
for (var i = 0; i < whitelist.length; i++) {
|
||||
if (host === whitelist[i] || host.endsWith("." + whitelist[i])) {
|
||||
return "DIRECT";
|
||||
}
|
||||
}
|
||||
return "PROXY 127.0.0.1:0"; // fake proxy
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue