fix: cname_active check

This commit is contained in:
Ben Allfree 2024-05-29 19:14:22 -04:00
parent e98a5fd4bb
commit 3e5d1562fa

View File

@ -457,6 +457,9 @@ export const instanceService = mkSingleton(
}
})
if (instance) {
if (!instance.cname_active) {
throw new Error(`CNAME blocked.`)
}
dbg(`${host} is a cname`)
cache.setItem(instance)
return instance