Update client connect() for options move compatibility

This commit is contained in:
deathcap 2016-01-31 12:28:25 -08:00
parent f17de6410b
commit 2e2a213076

View File

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