Fix null subdomain causing overwriting

Fixes #1645
This commit is contained in:
Owen
2025-12-06 21:58:21 -05:00
parent 502d15b9dc
commit 4e7843c1f3

View File

@@ -1086,7 +1086,7 @@ async function getDomainId(
// remove the base domain of the domain
let subdomain = null;
if (domainSelection.type == "ns") {
if (domainSelection.type == "ns" || domainSelection.type == "wildcard") {
if (fullDomain != baseDomain) {
subdomain = fullDomain.replace(`.${baseDomain}`, "");
}