Compare commits

..

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

2 changed files with 3 additions and 8 deletions

4
dist/index.js vendored
View File

@ -55,9 +55,7 @@ class HandshakeProxy extends libhyperproxy_1.Proxy {
createServer: libhyperproxy_1.createServer,
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();
this._node.pool.connected = true;
this._node.startSync();

View File

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