From c77f836d74ee2cbeda7d303b3d2946b88e9985ee Mon Sep 17 00:00:00 2001 From: idk Date: Sat, 11 Dec 2021 15:45:55 -0500 Subject: [PATCH] Add proxy.pac --- idk.i2p.torrent | Bin 20613 -> 20613 bytes index.html | 2 +- infographics.html | 2 +- plugins.html | 2 +- proxy.pac | 8 ++++++++ video.html | 2 +- 6 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 proxy.pac diff --git a/idk.i2p.torrent b/idk.i2p.torrent index 6ed8ab69369effd66513a4060b14fdadc52a1ce0..2067acdbacfeced86d90f5bb9ca69da161107079 100644 GIT binary patch delta 18 ZcmZo&$k@7&af2`uv#E*MW-+FGKL9s$1wH@( delta 18 ZcmZo&$k@7&af2`uvyrLcW-+FGKL9sH1vdZy diff --git a/index.html b/index.html index 7bbb875..d3dc07d 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ idk's home page - + diff --git a/infographics.html b/infographics.html index c7bc5e6..be76ca9 100644 --- a/infographics.html +++ b/infographics.html @@ -4,7 +4,7 @@ idk's home page - + diff --git a/plugins.html b/plugins.html index 5badafd..7c4158d 100644 --- a/plugins.html +++ b/plugins.html @@ -4,7 +4,7 @@ idk's home page - + diff --git a/proxy.pac b/proxy.pac new file mode 100644 index 0000000..3fc60ac --- /dev/null +++ b/proxy.pac @@ -0,0 +1,8 @@ +function FindProxyForURL(url, host) { + if (dnsDomainIs(host, ".i2p")) { + return "PROXY localhost:4444"; + } else if (dnsDomainIs(host, ".onion")) { + return "PROXY localhost:9050"; + } + return "DIRECT"; +} diff --git a/video.html b/video.html index 5eaaaaf..b811dd7 100644 --- a/video.html +++ b/video.html @@ -4,7 +4,7 @@ idk's home page - +