mirror of
https://github.com/v2fly/domain-list-community.git
synced 2026-03-05 03:00:43 +07:00
Compare commits
5 Commits
2026022709
...
2026030206
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6b16be4020 | ||
|
|
42aafe324e | ||
|
|
882f48e486 | ||
|
|
614b291120 | ||
|
|
2b3211df98 |
@@ -21,6 +21,7 @@ goskey.ru # GosKey - an electronic signature on a smartphone
|
|||||||
grfc.ru # General radio frequency center
|
grfc.ru # General radio frequency center
|
||||||
izbirkom.ru # Information on ongoing elections and referendums
|
izbirkom.ru # Information on ongoing elections and referendums
|
||||||
kremlin.ru # Online representation of the President of Russia
|
kremlin.ru # Online representation of the President of Russia
|
||||||
|
mil.ru # Ministry of Defense of the Russian Federation
|
||||||
nalog.ru # Federal Tax Service
|
nalog.ru # Federal Tax Service
|
||||||
xn--80ajghhoc2aj1c8b.xn--p1ai # Honest Sign - State Labeling System
|
xn--80ajghhoc2aj1c8b.xn--p1ai # Honest Sign - State Labeling System
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
2ip.ua
|
2ip.ua
|
||||||
abstractapi.com
|
abstractapi.com
|
||||||
bigdatacloud.net
|
bigdatacloud.net
|
||||||
|
check-host.net
|
||||||
db-ip.com
|
db-ip.com
|
||||||
extreme-ip-lookup.com
|
extreme-ip-lookup.com
|
||||||
fraudguard.io
|
fraudguard.io
|
||||||
|
|||||||
@@ -13,3 +13,12 @@ include:twitter
|
|||||||
include:vk
|
include:vk
|
||||||
|
|
||||||
truthsocial.com
|
truthsocial.com
|
||||||
|
|
||||||
|
# Mastodon
|
||||||
|
# * We can not make a comprehensive domain list of all Mastodon instances.
|
||||||
|
# * Many more dynamic/random instance domains are not listed here.
|
||||||
|
# * geosite:mastodon is not provided to avoid creating excessive expectations among users.
|
||||||
|
joinmastodon.org
|
||||||
|
mastodon.online
|
||||||
|
mastodon.social
|
||||||
|
pawoo.net
|
||||||
|
|||||||
@@ -180,6 +180,10 @@ wuyou.net # 无忧启动论坛
|
|||||||
x-station.cn # X电站
|
x-station.cn # X电站
|
||||||
znds.com # 智能电视网
|
znds.com # 智能电视网
|
||||||
|
|
||||||
|
# DCC Forum(心跳文学部中文论坛)
|
||||||
|
edgemonix.top # 图床
|
||||||
|
monika.love
|
||||||
|
|
||||||
423down.com # 423Down
|
423down.com # 423Down
|
||||||
acwifi.net # 路由器技术分享
|
acwifi.net # 路由器技术分享
|
||||||
appinn.com # 小众软件
|
appinn.com # 小众软件
|
||||||
|
|||||||
8
main.go
8
main.go
@@ -263,9 +263,6 @@ func (p *Processor) loadData(listName string, path string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func isMatchAttrFilters(entry *Entry, incFilter *Inclusion) bool {
|
func isMatchAttrFilters(entry *Entry, incFilter *Inclusion) bool {
|
||||||
if len(incFilter.MustAttrs) == 0 && len(incFilter.BanAttrs) == 0 {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
if len(entry.Attrs) == 0 {
|
if len(entry.Attrs) == 0 {
|
||||||
return len(incFilter.MustAttrs) == 0
|
return len(incFilter.MustAttrs) == 0
|
||||||
}
|
}
|
||||||
@@ -352,12 +349,13 @@ func (p *Processor) resolveList(plname string) error {
|
|||||||
for _, dentry := range pl.Entries { // Add direct entries
|
for _, dentry := range pl.Entries { // Add direct entries
|
||||||
roughMap[dentry.Plain] = dentry
|
roughMap[dentry.Plain] = dentry
|
||||||
}
|
}
|
||||||
for _, inc := range pl.Inclusions {
|
for _, inc := range pl.Inclusions { // Add included entries
|
||||||
if err := p.resolveList(inc.Source); err != nil {
|
if err := p.resolveList(inc.Source); err != nil {
|
||||||
return fmt.Errorf("failed to resolve inclusion %q: %w", inc.Source, err)
|
return fmt.Errorf("failed to resolve inclusion %q: %w", inc.Source, err)
|
||||||
}
|
}
|
||||||
|
isFullInc := len(inc.MustAttrs) == 0 && len(inc.BanAttrs) == 0
|
||||||
for _, ientry := range p.finalMap[inc.Source] {
|
for _, ientry := range p.finalMap[inc.Source] {
|
||||||
if isMatchAttrFilters(ientry, inc) { // Add included entries
|
if isFullInc || isMatchAttrFilters(ientry, inc) {
|
||||||
roughMap[ientry.Plain] = ientry
|
roughMap[ientry.Plain] = ientry
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user