diff --git a/src/main.ts b/src/main.ts index a89f391..5f4d718 100644 --- a/src/main.ts +++ b/src/main.ts @@ -274,10 +274,23 @@ class LocalRestApiSettingTab extends PluginSettingTab { Encrypted (HTTPS) API URL - - ${secureUrl} (copy) - `; + const secureUrlsTd = secureTr.createEl("td", { cls: "url" }); + secureUrlsTd.innerHTML = ` + ${secureUrl} (copy)
+ `; + if (this.plugin.settings.subjectAltNames) { + for (const name of this.plugin.settings.subjectAltNames.split("\n")) { + if (name.trim()) { + const altSecureUrl = `https://${name.trim()}:${ + this.plugin.settings.port + }/`; + secureUrlsTd.innerHTML += ` + ${altSecureUrl} (copy)
+ `; + } + } + } const insecureTr = connectionUrlsTbody.createEl( "tr", @@ -302,10 +315,23 @@ class LocalRestApiSettingTab extends PluginSettingTab { : "" } - - ${insecureUrl} (copy) - `; + const insecureUrlsTd = insecureTr.createEl("td", { cls: "url" }); + insecureUrlsTd.innerHTML = ` + ${insecureUrl} (copy)
+ `; + if (this.plugin.settings.subjectAltNames) { + for (const name of this.plugin.settings.subjectAltNames.split("\n")) { + if (name.trim()) { + const altSecureUrl = `https://${name.trim()}:${ + this.plugin.settings.insecurePort + }/`; + insecureUrlsTd.innerHTML += ` + ${altSecureUrl} (copy)
+ `; + } + } + } const seeMore = apiKeyDiv.createEl("p"); seeMore.innerHTML = `