改名
This commit is contained in:
@@ -182,12 +182,12 @@ abstract class ClientAbstracts extends Component implements IClient
|
|||||||
*/
|
*/
|
||||||
public function setHost(string $host): void
|
public function setHost(string $host): void
|
||||||
{
|
{
|
||||||
if (!preg_match('/(\d{1,3}\.){4}/', $host . '.')) {
|
|
||||||
$this->addHeader('Host', $host);
|
|
||||||
$this->host = System::gethostbyname($host);
|
|
||||||
} else {
|
|
||||||
$this->host = $host;
|
$this->host = $host;
|
||||||
}
|
// if (!preg_match('/(\d{1,3}\.){4}/', $host . '.')) {
|
||||||
|
// $this->addHeader('Host', $host);
|
||||||
|
// $this->host = System::gethostbyname($host);
|
||||||
|
// } else {
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user