Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add proxy options to allow proxying tracker and peer connections #874

Open
wants to merge 16 commits into
base: master
from
Open
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Fix a bug in cloning / extending

  • Loading branch information
yciabaud committed Aug 26, 2016
commit f1271995313f5d055755c2ffc2a36681b9f48b71
@@ -1661,12 +1661,12 @@ Torrent.prototype._drain = function () {
}

if (self.client.proxyOpts && self.client.proxyOpts.socksProxy && self.client.proxyOpts.proxyPeerConnections) {
var proxyOpts = clone(self.client.proxyOpts.socksProxy, {
var proxyOpts = extend(self.client.proxyOpts.socksProxy, {
command: 'connect',
target: opts
})

Socks.createConnection(proxyOpts, onGotSocket)
Socks.createConnection(clone(proxyOpts), onGotSocket)
} else {
onGotSocket(null, net.connect(opts))
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.