Skip to content

Instantly share code, notes, and snippets.

@Paris
Last active March 28, 2020 13:21
Show Gist options
  • Save Paris/2a8cd81c898f09bfe247713ee3932345 to your computer and use it in GitHub Desktop.
Save Paris/2a8cd81c898f09bfe247713ee3932345 to your computer and use it in GitHub Desktop.
Proxy configuration file for local Tor connections
function FindProxyForURL(url, host) {
if (host.endsWith('.onion') || host === 'check.torproject.org') {
return 'SOCKS5 192.168.1.2:9050';
}
return 'DIRECT';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment