mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-06-29 11:22:02 +08:00
feat: telegram use the random domain when not set (#704)
This commit is contained in:
@@ -108,9 +108,9 @@ export const newAddress = async (
|
||||
}
|
||||
// check domain
|
||||
const allowDomains = checkAllowDomains ? await getAllowDomains(c) : getDomains(c);
|
||||
// if domain is not set, use the first domain
|
||||
// if domain is not set, use the random domain
|
||||
if (!domain && allowDomains.length > 0) {
|
||||
domain = allowDomains[0];
|
||||
domain = allowDomains[Math.floor(Math.random() * allowDomains.length)];
|
||||
}
|
||||
// check domain is valid
|
||||
if (!domain || !allowDomains.includes(domain)) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
export const CONSTANTS = {
|
||||
VERSION: 'v' + '1.0.2',
|
||||
VERSION: 'v' + '1.0.3',
|
||||
|
||||
// DB Version
|
||||
DB_VERSION_KEY: 'db_version',
|
||||
|
||||
Reference in New Issue
Block a user