Skip to contents

Returns a self-contained version of address with the relay (DERP) details embedded, fetching the relay map if needed. A resolved address avoids relay map discovery when a client connects, although connecting still needs network access. The result is a secret, like the input.

Usage

tailcat_address_resolve(address, relay_map_url = NULL, timeout = 30)

tailcat_address_resolve_async(address, relay_map_url = NULL, timeout = 30)

Arguments

address

A tailcat address, as a string or the tailcat_secret returned by TailcatServer$address. Surrounding whitespace is ignored. Addresses are secrets.

relay_map_url

URL of a relay map to use instead of the default, or NULL to use the rtailcat.relay_map_url option (see the section on relay options in TailcatServer) or, when that is unset, the default.

timeout

Seconds to wait; Inf waits indefinitely and 0 polls (see the section on timeouts in TailcatServer).

Value

tailcat_address_resolve() returns the resolved address as a tailcat_secret. tailcat_address_resolve_async() returns a promises::promise() that resolves with it.