mirror of
https://codeberg.org/postscriptum/pac.git
synced 2026-03-31 21:15:27 +00:00
12 lines
No EOL
291 B
JavaScript
12 lines
No EOL
291 B
JavaScript
// 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
|
|
} |