File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ var Buffer = require('safe-buffer').Buffer
55var compact2string = require ( 'compact2string' )
66var debug = require ( 'debug' ) ( 'bittorrent-tracker:udp-tracker' )
77var dgram = require ( 'dgram' )
8+ var extend = require ( 'xtend' )
89var inherits = require ( 'inherits' )
910var randombytes = require ( 'randombytes' )
1011var Socks = require ( 'socks' )
@@ -76,8 +77,9 @@ UDPTracker.prototype._request = function (opts) {
7677 var relay
7778 var transactionId = genTransactionId ( )
7879
79- var proxyOpts = self . client . _proxyOpts && self . client . _proxyOpts . socksProxy
80+ var proxyOpts = self . client . _proxyOpts && extend ( self . client . _proxyOpts . socksProxy )
8081 if ( proxyOpts ) {
82+ proxyOpts . proxy = extend ( proxyOpts . proxy )
8183 if ( ! proxyOpts . proxy ) {
8284 proxyOpts . proxy = { }
8385 }
You can’t perform that action at this time.
0 commit comments