mirror of
https://github.com/Start9Labs/start9.com.git
synced 2026-04-01 21:13:11 +00:00
add proxy.pac
This commit is contained in:
@@ -11,6 +11,7 @@ const NOT_FOUND_PATH = "_site/404.html";
|
|||||||
module.exports = function (eleventyConfig) {
|
module.exports = function (eleventyConfig) {
|
||||||
eleventyConfig.addPassthroughCopy('./src/assets/images/');
|
eleventyConfig.addPassthroughCopy('./src/assets/images/');
|
||||||
eleventyConfig.addPassthroughCopy('./src/assets/videos/');
|
eleventyConfig.addPassthroughCopy('./src/assets/videos/');
|
||||||
|
eleventyConfig.addPassthroughCopy('./src/assets/proxy.pac');
|
||||||
eleventyConfig.addPassthroughCopy('public')
|
eleventyConfig.addPassthroughCopy('public')
|
||||||
|
|
||||||
// plugins
|
// plugins
|
||||||
|
|||||||
12
src/assets/proxy.pac
Normal file
12
src/assets/proxy.pac
Normal 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);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user