*Add getter for domain

This commit is contained in:
Derrick Hammer 2023-04-19 02:27:12 -04:00
parent c26be980c5
commit 5439c9dc92
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 1 deletions

View File

@ -8,12 +8,17 @@ type SSLCert = string | Buffer | Array<string | Buffer>;
export class SSLManager {
private _key?: Buffer;
private _domain: string;
constructor(domain: string) {
this._domain = domain;
}
private _domain: string;
get domain(): string {
return this._domain;
}
private _context?: tls.SecureContext;
get context(): tls.SecureContext {