remove autoSelectFamily

This commit is contained in:
zizifn
2023-03-07 02:24:48 +08:00
committed by zizifn
parent 1d45c93e2c
commit f1725c7539
3 changed files with 5 additions and 3 deletions

View File

@@ -193,6 +193,7 @@ vlessWServer.on('connection', async function connection(ws, request) {
responseStream = Readable.toWeb(remoteConnection);
}
// if readable not pipe can't wait fro writeable write method
await responseStream.pipeTo(
new WritableStream({
start() {
@@ -253,7 +254,7 @@ async function connect2Remote(port, host, log: Function): Promise<Socket> {
{
port: port,
host: host,
autoSelectFamily: true,
// autoSelectFamily: true,
},
() => {
log(`connected`);