torrent api + swip constants

This commit is contained in:
xiaomlove
2021-05-15 19:29:44 +08:00
parent 786095ca96
commit 33e99516b6
55 changed files with 1968 additions and 38 deletions
-4
View File
@@ -422,10 +422,6 @@ function getSchemeAndHttpHost()
$protocol = $isHttps ? 'https' : 'http';
$port = $_SERVER['SERVER_PORT'];
$result = "$protocol://" . $_SERVER['HTTP_HOST'];
//HTTP_HOST include port
// if ((!$isHttps && $port != 80) || ($isHttps && $port != 443)) {
// $result .= ":$port";
// }
return $result;
}