Skip to content

Commit 04383f3

Browse files
committed
Dont create agent for now since we cannot reuse it between requests.
1 parent 8ea50ea commit 04383f3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

client.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,6 @@ function Client (opts) {
6767
self._getAnnounceOpts = opts.getAnnounceOpts
6868
self._proxyOpts = opts.proxyOpts
6969

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-
7870
debug('new client %s', self.infoHash)
7971

8072
var webrtcSupport = self._wrtc !== false && (!!self._wrtc || Peer.WEBRTC_SUPPORT)

0 commit comments

Comments
 (0)