module

Untun

Constants

CLOUDFLARED_BIN_PATH = Path[Dir.tempdir, "untun-cr", {% if flag?(:windows) %} "cloudflared.#{CLOUDFLARED_VERSION}.exe" {% else %} "cloudflared" {% end %}]
CLOUDFLARED_NOTICE = "\n 🔥 Your installation of cloudflared software constitutes a symbol of your signature\n indicating that you accept the terms of the Cloudflare License, Terms and Privacy Policy.\n\n ❯ License: `https://developers.cloudflare.com/cloudflare-one/connections/connect-networks/downloads/license/`\n ❯ Terms: `https://www.cloudflare.com/terms/`\n ❯ Privacy Policy: `https://www.cloudflare.com/privacypolicy/`\n "
CLOUDFLARED_VERSION = ENV.fetch("CLOUDFLARED_VERSION", "2025.9.0")
RELEASE_BASE = "https://github.com/cloudflare/cloudflared/releases/"
VERSION = {{ (`shards version /tmp/tmp.BjFBHo/src/src`).strip.stringify }}

Instance methods

start_tunnel(url : String | Nil = nil, port : Int32 | String = 3000, hostname : String = "localhost", protocol : String = "http", verify_tls : Bool = false, accept_cloudflare_notice : Bool = false) : Cloudflared::TunnelResult | Nil
Source

Nested types