From d24ee57e25712846a7289da7f03d9eb809aef9ac Mon Sep 17 00:00:00 2001 From: Johnshall <71166067+Johnshall@users.noreply.github.com> Date: Sun, 14 Aug 2022 12:43:30 +0800 Subject: [PATCH] Domain list based on Loyalsoldier/v2ray-rules-dat --- README.md | 5 +++++ main.go | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 000000000..ac92d2229 --- /dev/null +++ b/README.md @@ -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) \ No newline at end of file diff --git a/main.go b/main.go index 8e55f1709..1ba7d1cd8 100644 --- a/main.go +++ b/main.go @@ -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) @@ -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) }