diff --git a/.eleventy.js b/.eleventy.js index a7e43c7..7d06972 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -11,6 +11,7 @@ const NOT_FOUND_PATH = "_site/404.html"; module.exports = function (eleventyConfig) { eleventyConfig.addPassthroughCopy('./src/assets/images/'); eleventyConfig.addPassthroughCopy('./src/assets/videos/'); + eleventyConfig.addPassthroughCopy('./src/assets/proxy.pac'); eleventyConfig.addPassthroughCopy('public') // plugins diff --git a/src/assets/proxy.pac b/src/assets/proxy.pac new file mode 100644 index 0000000..d093efe --- /dev/null +++ b/src/assets/proxy.pac @@ -0,0 +1,12 @@ +function FindProxyForURL(url, host) +{ + if (shExpMatch(host, "*.onion")) + { + return "SOCKS5 127.0.0.1:9050"; + } + return "DIRECT"; +} + +function FindProxyForURLEx(url, host) { + return FindProxyForURL(url, host); +}