From 2e2a213076e284d2ce7e76578b75843936077f69 Mon Sep 17 00:00:00 2001 From: deathcap Date: Sun, 31 Jan 2016 12:28:25 -0800 Subject: [PATCH] Update client connect() for options move compatibility --- src/client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client.js b/src/client.js index 356ab53..8668f62 100644 --- a/src/client.js +++ b/src/client.js @@ -218,6 +218,7 @@ class Client extends EventEmitter // TCP/IP-specific (not generic Stream) method for backwards-compatibility connect(port, host) { var options = {port, host}; + if (!this.options) this.options = options; require('./client/tcp_dns')(this, options); options.connect(this); }