fixbug: forgot proxyIP

This commit is contained in:
cuteist
2023-06-15 16:12:24 +08:00
committed by zizifn
parent 4ac4ee21f5
commit df9d56668b

View File

@@ -190,7 +190,7 @@ async function handleTCPOutBound(remoteSocket, addressType, addressRemote, portR
if (!!socks5Address) {
tcpSocket = await connectAndWrite(addressRemote, portRemote, true)
} else {
tcpSocket = await connectAndWrite(addressRemote, portRemote);
tcpSocket = await connectAndWrite(proxyIP || addressRemote, portRemote);
}
// no matter retry success or not, close websocket
tcpSocket.closed.catch(error => {