add proxy.pac

This commit is contained in:
Matt Hill
2026-03-12 12:32:31 -06:00
parent 98b429fcad
commit 97c6eeffb8
2 changed files with 13 additions and 0 deletions

View File

@@ -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

12
src/assets/proxy.pac Normal file
View File

@@ -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);
}