kinetex - v1.0.0-rc.1
    Preparing search index...

    Function createSocks5Tunnel

    • Establish a SOCKS5 tunnel to target via the configured proxy.

      Automatically retries on transient failures (network unreachable, TTL expired) using exponential backoff based on proxy config.

      Parameters

      Returns Promise<Socks5Tunnel>

      A Socks5Tunnel whose .conn is ready for application data

      On handshake failure, auth failure, timeout, or proxy error

      const tunnel = await createSocks5Tunnel(
      { host: "proxy.example.com", port: 1080, username: "u", password: "p" },
      { host: "api.example.com", port: 443, tls: true },
      denoTcpConnector,
      );
      // tunnel.conn is now a transparent TCP (or TLS) stream to api.example.com:443