We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ea50ea commit 04383f3Copy full SHA for 04383f3
client.js
@@ -67,14 +67,6 @@ function Client (opts) {
67
self._getAnnounceOpts = opts.getAnnounceOpts
68
self._proxyOpts = opts.proxyOpts
69
70
- // Create HTTP agents from socks proxy if needed
71
- if (self._proxyOpts && self._proxyOpts.socksProxy && !self._proxyOpts.httpAgent) {
72
- self._proxyOpts.httpAgent = new Socks.Agent(self._proxyOpts.socksProxy, false)
73
- }
74
- if (self._proxyOpts && self._proxyOpts.socksProxy && !self._proxyOpts.httpsAgent) {
75
- self._proxyOpts.httpsAgent = new Socks.Agent(self._proxyOpts.socksProxy, true)
76
77
-
78
debug('new client %s', self.infoHash)
79
80
var webrtcSupport = self._wrtc !== false && (!!self._wrtc || Peer.WEBRTC_SUPPORT)
0 commit comments