()
| 184 | |
| 185 | // if the cf connect tcp socket have no incoming data, we retry to redirect ip |
| 186 | async function retry() { |
| 187 | const tcpSocket = await connectAndWrite(proxyIP || addressRemote, portRemote) |
| 188 | // no matter retry success or not, close websocket |
| 189 | tcpSocket.closed.catch(error => { |
| 190 | console.log('retry tcpSocket closed error', error); |
| 191 | }).finally(() => { |
| 192 | safeCloseWebSocket(webSocket); |
| 193 | }) |
| 194 | remoteSocketToWS(tcpSocket, webSocket, vlessResponseHeader, null, log); |
| 195 | } |
| 196 | |
| 197 | const tcpSocket = await connectAndWrite(addressRemote, portRemote); |
| 198 |
no test coverage detected