*Update cert types

This commit is contained in:
Derrick Hammer 2023-04-18 22:35:28 -04:00
parent 714da70209
commit 356681af35
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 2 deletions

View File

@ -4,6 +4,7 @@ import log from "../log.js";
import config from "../config.js";
export type SSLManagerRenewHandler = (domain: string) => Promise<boolean>;
type SSLCert = string | Buffer | Array<string | Buffer>;
export class SSLManager {
private _key?: Buffer;
@ -19,9 +20,9 @@ export class SSLManager {
return this._context as tls.SecureContext;
}
private _cert?: Buffer;
private _cert?: SSLCert;
set cert(cert: Buffer) {
set cert(cert: SSLCert) {
this._cert = cert;
this._maybeUpdateContext();
}