fix(core): update
This commit is contained in:
parent
af42598464
commit
d800b6ed6e
@ -24,8 +24,13 @@ const portProxyCalls = {
|
|||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
port: 8001
|
port: 8001
|
||||||
});
|
});
|
||||||
from.pipe(to);
|
from.pipe(to)
|
||||||
to.pipe(from);
|
to.pipe(from)
|
||||||
|
from.on('error', () => { from.end(), to.end() });
|
||||||
|
to.on('error', () => { from.end(), to.end() });
|
||||||
|
from.on('close', () => {
|
||||||
|
to.end();
|
||||||
|
})
|
||||||
})
|
})
|
||||||
.listen(portArg);
|
.listen(portArg);
|
||||||
console.log(`PortProxy -> OK: Now listening on port ${portArg}`);
|
console.log(`PortProxy -> OK: Now listening on port ${portArg}`);
|
||||||
|
Loading…
Reference in New Issue
Block a user