From 9f278cf848c05360ea85f0d1965d5328afbde637 Mon Sep 17 00:00:00 2001 From: "Ryan X. Charles" Date: Thu, 17 Apr 2014 15:17:33 -0300 Subject: [PATCH] fix "config" vs "options" vs "opts" bug --- Connection.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Connection.js b/Connection.js index eff0aa1..544c17c 100644 --- a/Connection.js +++ b/Connection.js @@ -31,9 +31,9 @@ function Connection(socket, peer, opts) { this.peer = peer; // check for socks5 proxy options and construct a proxied socket - if (this.options.proxy) { + if (this.config.proxy) { var Socks5Client = imports.Socks5Client || require('socks5-client'); - this.socket = new Socks5Client(config.proxy.host, config.proxy.port); + this.socket = new Socks5Client(this.config.proxy.host, this.config.proxy.port); } // A connection is considered "active" once we have received verack