Skip to content

Commit

Permalink
http
Browse files Browse the repository at this point in the history
  • Loading branch information
何平 committed Dec 22, 2023
1 parent c3413f8 commit 6f01cc9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion cloud-admin/Server/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use Swow\SocketException;
use Throwable;

use function Hyperf\Config\config;
use function in_array;
use function sleep;

Expand Down Expand Up @@ -54,7 +55,7 @@ public function __construct(protected LoggerInterface $logger)
parent::__construct();

/** @var array{certificate:string,certificate_key:string,verify_peer:bool,verify_peer_name:bool,allow_self_signed:bool} $config */
$config = \Hyperf\Config\config('ssl');
$config = config('ssl');

if ($config['enable'] ?? false) {
if (! Extension::isBuiltWith('ssl')) {
Expand Down
4 changes: 2 additions & 2 deletions config/autoload/annotations.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
ArrayShape::class,
],
'class_map' => [
Server::class => BASE_PATH . '/cloud-admin//Http2/Server/Server.php',
// Server::class => BASE_PATH . '/cloud-admin/Server/Server.php',
// Server::class => BASE_PATH . '/cloud-admin//Http2/Server/Server.php',
Server::class => BASE_PATH . '/cloud-admin/Server/Server.php',
],
],
];

0 comments on commit 6f01cc9

Please sign in to comment.