From 7c849555f4458a6488e7547f26e7fd31ea066675 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 19 Dec 2019 10:41:42 +0800 Subject: [PATCH] add clear --- common/HttpClient.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/common/HttpClient.php b/common/HttpClient.php index fdfb6b8..3077b42 100644 --- a/common/HttpClient.php +++ b/common/HttpClient.php @@ -247,10 +247,13 @@ class HttpClient } $explode = explode('/', $url); $first = array_shift($explode); - if (preg_match('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/', $first)) { - if (strpos($first, ':') !== false) { - [$first, $this->port] = explode(':', $first); + if (strpos($first, ':') !== false) { + [$first, $this->port] = explode(':', $first); + if ($this->port !== 443) { + $this->isSSL = false; } + } + if (preg_match('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/', $first)) { return $first; } return System::gethostbyname($first);