Skip to main content

resolve_bind

Function resolve_bind 

Source
pub fn resolve_bind(bind: &Bind) -> (IpAddr, Option<String>)
Expand description

Resolve --bind to an address, plus a warning when the answer is not what the operator asked for.

Split out from serve because the interesting half - deciding whether Tailscale gave us something usable - is testable without opening a socket.