Compare commits

..

No commits in common. "a24a0414cea4b6030620790acbb0a3d9ad7391da" and "7ff1b3421252a0665cf949a71759b65baacd3d30" have entirely different histories.

2 changed files with 3 additions and 8 deletions

2
dist/index.js vendored
View File

@ -55,9 +55,7 @@ class HandshakeProxy extends libhyperproxy_1.Proxy {
createServer: libhyperproxy_1.createServer, createServer: libhyperproxy_1.createServer,
createSocket: libhyperproxy_1.createSocket, createSocket: libhyperproxy_1.createSocket,
}); });
if (this?._node?.http?.http?.listen) {
this._node.http.http.listen = (port, host, cb) => cb(); this._node.http.http.listen = (port, host, cb) => cb();
}
await this._node.open(); await this._node.open();
this._node.pool.connected = true; this._node.pool.connected = true;
this._node.startSync(); this._node.startSync();

View File

@ -68,11 +68,8 @@ export default class HandshakeProxy extends Proxy {
createSocket, createSocket,
}); });
if(this?._node?.http?.http?.listen){
this._node.http.http.listen = (port: number, host: string, cb: Function) => this._node.http.http.listen = (port: number, host: string, cb: Function) =>
cb(); cb();
}
await this._node.open(); await this._node.open();
this._node.pool.connected = true; this._node.pool.connected = true;