改名
This commit is contained in:
@@ -617,7 +617,7 @@ abstract class ClientAbstracts extends Component implements IClient
|
|||||||
$this->port = $isHttps ? 443 : $this->port;
|
$this->port = $isHttps ? 443 : $this->port;
|
||||||
if (isIp($domain)) {
|
if (isIp($domain)) {
|
||||||
$this->host = $domain;
|
$this->host = $domain;
|
||||||
} else if ($this->isUseSwoole()) {
|
} else if (Context::inCoroutine()) {
|
||||||
$this->host = System::gethostbyname($domain) ?? $domain;
|
$this->host = System::gethostbyname($domain) ?? $domain;
|
||||||
} else {
|
} else {
|
||||||
$this->host = $domain;
|
$this->host = $domain;
|
||||||
@@ -638,7 +638,7 @@ abstract class ClientAbstracts extends Component implements IClient
|
|||||||
{
|
{
|
||||||
$host = $this->getHost();
|
$host = $this->getHost();
|
||||||
if ($string == '/') {
|
if ($string == '/') {
|
||||||
$string = '';
|
$string = '/';
|
||||||
} else if (!str_starts_with($string, '/')) {
|
} else if (!str_starts_with($string, '/')) {
|
||||||
$string = '/' . $string;
|
$string = '/' . $string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user