Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Domain list based on Loyalsoldier/v2ray-rules-dat
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnshall authored Aug 14, 2022
1 parent 9058c3c commit d24ee57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Domain list community

This project manages a list of domains, to be used as geosites for routing purpose in sing-box.

Based on [Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat)
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ func get(downloadURL *string) ([]byte, error) {

func download(release *github.RepositoryRelease) ([]byte, error) {
geositeAsset := common.Find(release.Assets, func(it *github.ReleaseAsset) bool {
return *it.Name == "dlc.dat"
return *it.Name == "geosite.dat"
})
geositeChecksumAsset := common.Find(release.Assets, func(it *github.ReleaseAsset) bool {
return *it.Name == "dlc.dat.sha256sum"
return *it.Name == "geosite.dat.sha256sum"
})
if geositeAsset == nil {
return nil, E.New("geosite asset not found in upstream release ", release.Name)
Expand Down Expand Up @@ -171,7 +171,7 @@ func release(source string, destination string, output string) error {
}

func main() {
err := release("v2fly/domain-list-community", "sagernet/sing-geosite", "geosite.db")
err := release("Loyalsoldier/v2ray-rules-dat", "Johnshall/sing-geosite", "geosite.db")
if err != nil {
logrus.Fatal(err)
}
Expand Down

0 comments on commit d24ee57

Please sign in to comment.