nsite-ts/tor-and-i2p.pac

12 lines
270 B
Plaintext
Raw Normal View History

2024-10-01 12:28:34 -05:00
// SPDX-License-Identifier: CC0-1.0
function FindProxyForURL(url, host) {
if (shExpMatch(host, "*.i2p")) {
return "PROXY 127.0.0.1:4444; SOCKS5 127.0.0.1:4447";
}
if (shExpMatch(host, "*.onion")) {
return "SOCKS5 127.0.0.1:9050";
}
return "DIRECT";
}