Fix how host is detected from head_metadata component
The current way is probably exploitable somehow, so it'll be best to weasel in information from config.Config
somehow
The current way is probably exploitable somehow, so it'll be best to weasel in information from config.Config
somehow