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); }