mirror of
https://github.com/hzrd149/nsite-gateway.git
synced 2025-06-23 12:05:01 +00:00
12 lines
270 B
Plaintext
12 lines
270 B
Plaintext
![]() |
// 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";
|
||
|
}
|