pub fn format_endpoint(host: &str, port: u16) -> String
Render a host and port the way the user would type them, bracketing a bare IPv6 literal so the result parses back.