Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Bugfix in socks configuration
  • Loading branch information
yciabaud committed Aug 25, 2016
commit d62682e80e5c4be6e6f120789e7f95ff42caba34
5 changes: 4 additions & 1 deletion lib/client/udp-tracker.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@ UDPTracker.prototype._request = function (opts) {
var socket
var transactionId = genTransactionId()
if (self.client._socksProxyOpts) {
if (!self.client._socksProxyOpts.proxy) {
self.client._socksProxyOpts.proxy = {}
}
// UDP requests uses the associate command
self.client._socksProxyOpts.command = 'associate'
self.client._socksProxyOpts.proxy.command = 'associate'
if (!self.client._socksProxyOpts.target) {
// This should contain client IP and port but can be set to 0 if we don't have this information
self.client._socksProxyOpts.target = {
Expand Down