改名
This commit is contained in:
@@ -412,6 +412,12 @@ abstract class ClientAbstracts extends Component implements IClient
|
||||
*/
|
||||
public function getPort(): int
|
||||
{
|
||||
if ($this->isSSL()) {
|
||||
return 443;
|
||||
}
|
||||
if (empty($this->port)) {
|
||||
return 80;
|
||||
}
|
||||
return $this->port;
|
||||
}
|
||||
|
||||
@@ -741,9 +747,7 @@ abstract class ClientAbstracts extends Component implements IClient
|
||||
private function defaultString($string)
|
||||
{
|
||||
$host = $this->getHost();
|
||||
if (!empty($this->port) && $this->port != 443) {
|
||||
$host .= ':' . $this->getPort();
|
||||
}
|
||||
if ($string == '/') {
|
||||
$string = '';
|
||||
} else if (strpos($string, '/') !== 0) {
|
||||
|
||||
Reference in New Issue
Block a user