Compare commits
2 Commits
7ff1b34212
...
a24a0414ce
Author | SHA1 | Date |
---|---|---|
Derrick Hammer | a24a0414ce | |
Derrick Hammer | 7730595b48 |
|
@ -55,7 +55,9 @@ class HandshakeProxy extends libhyperproxy_1.Proxy {
|
||||||
createServer: libhyperproxy_1.createServer,
|
createServer: libhyperproxy_1.createServer,
|
||||||
createSocket: libhyperproxy_1.createSocket,
|
createSocket: libhyperproxy_1.createSocket,
|
||||||
});
|
});
|
||||||
this._node.http.http.listen = (port, host, cb) => cb();
|
if (this?._node?.http?.http?.listen) {
|
||||||
|
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();
|
||||||
|
|
|
@ -68,8 +68,11 @@ export default class HandshakeProxy extends Proxy {
|
||||||
createSocket,
|
createSocket,
|
||||||
});
|
});
|
||||||
|
|
||||||
this._node.http.http.listen = (port: number, host: string, cb: Function) =>
|
if(this?._node?.http?.http?.listen){
|
||||||
cb();
|
this._node.http.http.listen = (port: number, host: string, cb: Function) =>
|
||||||
|
cb();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
await this._node.open();
|
await this._node.open();
|
||||||
this._node.pool.connected = true;
|
this._node.pool.connected = true;
|
||||||
|
|
Loading…
Reference in New Issue