Skip to main content

parse_effective_hostname

Function parse_effective_hostname 

Source
pub fn parse_effective_hostname(output: &str) -> Option<String>
Expand description

Pull the effective hostname value out of ssh -G output. First usable line wins; the value must still be hostname-shaped, so a corrupt line cannot smuggle text into a URL.