mirror of
https://github.com/pockethost/pockethost.git
synced 2025-06-07 14:46:41 +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) {
|
||||||
|
if (!instance.cname_active) {
|
||||||
|
throw new Error(`CNAME blocked.`)
|
||||||
|
}
|
||||||
dbg(`${host} is a cname`)
|
dbg(`${host} is a cname`)
|
||||||
cache.setItem(instance)
|
cache.setItem(instance)
|
||||||
return instance
|
return instance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user