mirror of
https://github.com/zhigang1992/cow.git
synced 2026-01-12 17:12:57 +08:00
Add bdimg.com to direct. Remove host from stat after 15 days.
This commit is contained in:
@@ -102,6 +102,7 @@ var directDomainList = []string{
|
||||
"bing.com.cn",
|
||||
"baidu.com",
|
||||
"bdstatic.com",
|
||||
"bdimg.com",
|
||||
"youdao.com",
|
||||
"sogou.com",
|
||||
|
||||
|
||||
@@ -73,7 +73,7 @@ func (vc *VisitCnt) userSpecified() bool {
|
||||
return vc.Blocked == userCnt || vc.Direct == userCnt
|
||||
}
|
||||
|
||||
const siteStaleThreshold = 30 * 24 * time.Hour
|
||||
const siteStaleThreshold = 15 * 24 * time.Hour
|
||||
|
||||
// shouldDrop returns true if the a VisitCnt is not visited for a long time
|
||||
// (several days) or is specified by user.
|
||||
|
||||
Reference in New Issue
Block a user