Documentation
¶
Overview ¶
Package exposure persists local metadata for active tunnel exposures that cannot be retrieved from the Cloudflare API (e.g. the target port).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateDomain ¶ added in v0.2.2
GenerateDomain constructs a flattened subdomain to prevent SSL wildcard mismatch. Cloudflare Universal SSL certificates automatically cover 1 level of wildcard (*.example.com). If cfDomain is already a subdomain (e.g. james.ipv1337.dev - 3 parts), navigating one level deeper (eagle.james.ipv1337.dev) causes SSL errors (ERR_SSL_VERSION_OR_CIPHER_MISMATCH) because it requires Advanced Certificate Manager coverage (*.*.ipv1337.dev is invalid, you must cover the base specifically). To bypass this, we combine the exposeID and the first subdomain part with a hyphen.
func LookupPort ¶
LookupPort returns the port for a tunnel name, or "" if unknown.
func RemoveByName ¶
Remove deletes a single entry by tunnel name.