*Add getter for domain
This commit is contained in:
parent
c26be980c5
commit
5439c9dc92
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue