src/Leevel/Http/Request.php
public function getPort(): int
    {
        $port = (int) $this->server->get('SERVER_PORT');

        if (!$port) {
            $port = 'https' === $this->getScheme() ? 443 : 80;
        }

        return $port;
    }
public function getPort(): int
    {
        $port = (int) $this->server->get('SERVER_PORT');

        if (!$port) {
            $port = 'https' === $this->getScheme() ? 443 : 80;
        }

        return $port;
    }
服务器端口.

@return int