mirror of
https://github.com/SickleSec/SnowEyes.git
synced 2026-10-24 17:04:31 +00:00
BugFix: 修复仅查询根域名而不查询完整域名IP
This commit is contained in:
1 parent
04fb0fa095
commit
5d491d7d6e
1 file changed
+3
-1
@@ -365,6 +365,8 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
|
||||
}
|
||||
case 'GET_SITE_ANALYSIS': {
|
||||
const domain = getRootDomain(request.domain);
|
||||
// 查询IP需要完整域名
|
||||
const fullDomain = request.domain
|
||||
const tabId = request.tabId;
|
||||
|
||||
if (analysisPending) return true;
|
||||
@@ -391,7 +393,7 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
|
||||
|
||||
Promise.all([
|
||||
cachedData.weight || fetchDomainWeight(domain, tabId),
|
||||
cachedData.ip || fetchIpInfo(domain, tabId),
|
||||
cachedData.ip || fetchIpInfo(fullDomain, tabId),
|
||||
cachedData.icp || fetchIcpInfo(domain, tabId)
|
||||
]).then(([weightData, ipData, icpData]) => {
|
||||
analysisPending = false;
|
||||
|
||||
Reference in new issue
Block a user