From 5439c9dc922bdedaefa2b0292205cc369c9a8d85 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 19 Apr 2023 02:27:12 -0400 Subject: [PATCH] *Add getter for domain --- src/modules/ssl.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/ssl.ts b/src/modules/ssl.ts index 8066b8a..ced669d 100644 --- a/src/modules/ssl.ts +++ b/src/modules/ssl.ts @@ -8,12 +8,17 @@ type SSLCert = string | Buffer | Array; 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 {