mirror of
https://codeberg.org/postscriptum/pac.git
synced 2026-04-01 05:25:28 +00:00
add yggdrasil-mycelium-direct.pac
This commit is contained in:
parent
b5e9c58f64
commit
118d8bd24e
1 changed files with 12 additions and 0 deletions
12
yggdrasil-mycelium-direct.pac
Normal file
12
yggdrasil-mycelium-direct.pac
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Yggdrasil and Mycelium only (local router)
|
||||
|
||||
function FindProxyForURL(url, host)
|
||||
{
|
||||
if (/^0{0,1}[2-3][a-f0-9]{0,2}:/.test(host) || /\.ygg$/.test(host)
|
||||
|| /^0{0,1}[4-5][a-f0-9]{0,2}:/.test(host)
|
||||
) {
|
||||
return 'DIRECT';
|
||||
}
|
||||
|
||||
return 'PROXY 127.0.0.1:0'; // fake proxy
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue