add clear
This commit is contained in:
@@ -237,7 +237,11 @@ class HttpClient
|
|||||||
$url = str_replace('https://', '', $url);
|
$url = str_replace('https://', '', $url);
|
||||||
}
|
}
|
||||||
$explode = explode('/', $url);
|
$explode = explode('/', $url);
|
||||||
return System::gethostbyname(array_shift($explode));
|
$first = array_shift($explode);
|
||||||
|
if (preg_match('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/', $first)) {
|
||||||
|
return $first;
|
||||||
|
}
|
||||||
|
return System::gethostbyname($first);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user