mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2026-04-07 02:13:18 +08:00
feat: 默认超时 8000ms
This commit is contained in:
@@ -561,7 +561,7 @@ function ResolveDomainOperator({
|
||||
throw new Error(`域名解析服务提供方 ${provider} 不支持 ${_type}`);
|
||||
}
|
||||
const { defaultTimeout } = $.read(SETTINGS_KEY);
|
||||
const requestTimeout = timeout || defaultTimeout;
|
||||
const requestTimeout = timeout || defaultTimeout || 8000;
|
||||
let type = ['IPv6', 'IP4P'].includes(_type) ? 'IPv6' : 'IPv4';
|
||||
|
||||
const resolver = DOMAIN_RESOLVERS[provider];
|
||||
|
||||
Reference in New Issue
Block a user