Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function FindProxyForURL(url, host) {
- const proxyAddressWithPort = '127.0.0.1:80'
- const inList = (host, list) => list.some(h => {
- return dnsDomainIs(host, h) || dnsDomainIs(host, `www.${h}`)
- })
- host = host.toLowerCase();
- if (inList(host, [
- 'ip-ping.ru', // for checking.
- 'telegram.org',
- 'web.telegram.org'
- ]))
- return "PROXY ${proxyAddressWithPort}";
- return "DIRECT";
- }
Add Comment
Please, Sign In to add comment