Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 20a2b7b

Browse files
committed
✏️ 修复一个小错误
1 parent 3db4970 commit 20a2b7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function registerSigintHandler() {
8585
$socketio->connect();
8686
});
8787
Coroutine::sleep(1);
88-
if (file_exists('./cert/'.$config['CLUSTER_ID'].'.cert') && file_exists('./cert/'.$config['CLUSTER_ID'].'.key')) {
88+
if (file_exists('./cert/'.$config['CLUSTER_ID'].'.crt') && file_exists('./cert/'.$config['CLUSTER_ID'].'.key')) {
8989

9090
} else {
9191
mlog("正在获取证书");
@@ -96,7 +96,7 @@ function registerSigintHandler() {
9696
Coroutine::sleep(1);
9797
$allcert = $socketio->Getcert();
9898
mlog("已获取证书,到期时间{$allcert['0']['1']['expires']}");
99-
$cert = fopen('./cert/'.$config['CLUSTER_ID'].'.cert', 'w');
99+
$cert = fopen('./cert/'.$config['CLUSTER_ID'].'.crt', 'w');
100100
$Writtencert = fwrite($cert, $allcert['0']['1']['cert']);
101101
fclose($cert);
102102
$cert = fopen('./cert/'.$config['CLUSTER_ID'].'.key', 'w');

0 commit comments

Comments
 (0)