mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-05 05:36:51 +00:00
fix: cname_active check
This commit is contained in:
parent
e98a5fd4bb
commit
3e5d1562fa
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user