diff --git a/.gitignore b/.gitignore index 97d16e6f..6377cee8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .idea +.vscode /domain-list-community /domain-list-community.exe diff --git a/data/bytedance b/data/bytedance index dfafce0f..b5b89e66 100644 --- a/data/bytedance +++ b/data/bytedance @@ -3,7 +3,11 @@ include:fqnovel include:juejin include:lark include:tiktok +include:bytedance-ads +volcvod.com +volces.com +volceapplog.com amemv.com bytecdn.cn byted-static.com diff --git a/data/geolocation-cn b/data/geolocation-cn index 35332ca8..5947940c 100644 --- a/data/geolocation-cn +++ b/data/geolocation-cn @@ -1433,3 +1433,6 @@ runsheng.com vzuu.com zoom3g.com zoomyou.cn + +# 沪ICP备2021017807号-4 +ecombdapi.com diff --git a/data/kuaishou b/data/kuaishou index 01b32f50..7fc164e7 100644 --- a/data/kuaishou +++ b/data/kuaishou @@ -4,5 +4,7 @@ gifshow.com ksapisrv.com kuaishou.com yximgs.com +kwaizt.com +kuaishouzt.com include:kuaishou-ads diff --git a/main.go b/main.go index 05253b63..d874270f 100644 --- a/main.go +++ b/main.go @@ -5,7 +5,6 @@ import ( "errors" "flag" "fmt" - "io/ioutil" "os" "path/filepath" "sort" @@ -53,7 +52,7 @@ func (l *ParsedList) toPlainText(listName string) error { // Entry output format is: type:domain.tld:@attr1,@attr2 entryBytes = append(entryBytes, []byte(entry.Type+":"+entry.Value+attrString+"\n")...) } - if err := ioutil.WriteFile(filepath.Join(*outputDir, listName+".txt"), entryBytes, 0644); err != nil { + if err := os.WriteFile(filepath.Join(*outputDir, listName+".txt"), entryBytes, 0644); err != nil { return fmt.Errorf(err.Error()) } return nil @@ -383,7 +382,7 @@ func main() { fmt.Println("Failed:", err) os.Exit(1) } - if err := ioutil.WriteFile(filepath.Join(*outputDir, *outputName), protoBytes, 0644); err != nil { + if err := os.WriteFile(filepath.Join(*outputDir, *outputName), protoBytes, 0644); err != nil { fmt.Println("Failed: ", err) os.Exit(1) } else {