fix: pass remoteAddress and remotePort as part of socket options

This commit is contained in:
Derrick Hammer 2023-08-02 16:37:21 -04:00
parent 9c7f240056
commit 608aace286
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 1 deletions

View File

@ -190,7 +190,10 @@ export default class MultiSocketProxy extends Proxy {
const peer = this._nextPeer();
const socketId = nextSocketId();
const socket = new this.socketClass(socketId, this, peer, options);
const socket = new this.socketClass(socketId, this, peer, options, {
remoteAddress: options.host,
remotePort: options.port,
});
this._sockets.set(socketId, socket);
return socket;