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

Commit a0e2074

Browse files
author
ZeroWolf233
committed
fix: 同步93的fix copy
1 parent 3916ca0 commit a0e2074

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/cluster.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,12 +540,12 @@ export class Cluster {
540540
throw new Error('你的ssl私钥呢?')
541541
}
542542
if (await fse.pathExists(config.sslCert)) {
543-
await fse.copyFile(config.sslCert, join(this.tmpDir, 'cert.pem'))
543+
await fse.copy(config.sslCert, join(this.tmpDir, 'cert.pem'))
544544
} else {
545545
await fse.outputFile(join(this.tmpDir, 'cert.pem'), config.sslCert)
546546
}
547547
if (await fse.pathExists(config.sslKey)) {
548-
await fse.copyFile(config.sslKey, join(this.tmpDir, 'key.pem'))
548+
await fse.copy(config.sslKey, join(this.tmpDir, 'key.pem'))
549549
} else {
550550
await fse.outputFile(join(this.tmpDir, 'key.pem'), config.sslKey)
551551
}

0 commit comments

Comments
 (0)