diff --git a/yggdrasil-mycelium-direct.pac b/yggdrasil-mycelium-direct.pac new file mode 100644 index 0000000..2ff1dc5 --- /dev/null +++ b/yggdrasil-mycelium-direct.pac @@ -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 +} \ No newline at end of file