net: fix socket and dns callbacks.
This commit is contained in:
parent
32fd1d6dba
commit
b8cd9893fb
@ -3228,9 +3228,9 @@ function PoolOptions(options) {
|
||||
this.port = this.network.port;
|
||||
this.maxOutbound = 8;
|
||||
this.maxInbound = 8;
|
||||
this.createSocket = this._createSocket;
|
||||
this.createSocket = this._createSocket.bind(this);
|
||||
this.createServer = tcp.createServer;
|
||||
this.resolve = this._resolve;
|
||||
this.resolve = this._resolve.bind(this);
|
||||
this.proxy = null;
|
||||
this.onion = false;
|
||||
this.selfish = false;
|
||||
@ -3374,7 +3374,7 @@ PoolOptions.prototype.fromOptions = function fromOptions(options) {
|
||||
this.proxy = options.proxy;
|
||||
}
|
||||
|
||||
if (options.onion) {
|
||||
if (options.onion != null) {
|
||||
assert(typeof options.onion === 'boolean');
|
||||
this.onion = options.onion;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user