public static function getHosts()
{
$hosts = [];
// hosts separated by comma (,) is deprecated.
$option = str_replace(',', "\n", static::option('hosts'));
foreach (explode("\n", $option) as $h) {
if (strpos($h, '://') === false) {
$hosts[] = trim('http://' . $h);
} else {
$hosts[] = trim($h);
}
}
return $hosts;
}