From 343326457996fe20e122ac2ac408d6923cca8e08 Mon Sep 17 00:00:00 2001 From: IceCodeNew <32576256+IceCodeNew@users.noreply.github.com> Date: Mon, 8 Jun 2020 03:17:03 +0800 Subject: [PATCH 1/5] Revert the way of generating hashsum files(#28) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 有鉴于 [v2fly/fhs-install-v2ray](https://github.com/v2fly/fhs-install-v2ray) 极可能会成为未来官方钦定的一种 dat 文件更新标准,最近在 build.yml 上所做的更改是值得商榷的。 我的建议是该 fork 不应该与上游的行为不同,否则如果用户替换 v2fly 的 dat-install 脚本中更新源地址就会遇到问题。 --- .github/workflows/build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2682338..3ae3406 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -145,7 +145,9 @@ jobs: install -p $GOPATH/src/$GEOSITE_REPO/data/{proxy,direct,reject}-list.txt ./publish/ cd ./publish zip rules.zip {proxy,direct,reject}-list.txt geoip.dat geosite.dat - sha256sum geoip.dat geosite.dat rules.zip > sha256sum + sha256sum geoip.dat > geoip.dat.sha256sum + sha256sum geosite.dat > geosite.dat.sha256sum + sha256sum rules.zip > rules.zip.sha256sum - name: Release and upload assets uses: softprops/action-gh-release@v1 From aeeeab791b56363ccc270245d43de8083dd91817 Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Mon, 8 Jun 2020 05:13:27 +0800 Subject: [PATCH 2/5] Create dependabot.yml --- .github/dependabot.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d508495 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +# To get started with Dependabot version updates, you'll need to specify which +# package ecosystems to update and where the package manifests are located. +# Please see the documentation for all configuration options: +# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + timezone: "Asia/Shanghai" + time: "07:00" + pull-request-branch-name: + separator: "-" From a7c656bd800d9c2a8ae13992ecbb4164a8c5f834 Mon Sep 17 00:00:00 2001 From: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Wed, 10 Jun 2020 15:13:52 +0800 Subject: [PATCH 3/5] Add apple-cn & google-cn sub-lists for custom routing config due to accessibility in China mainland and https://github.com/Loyalsoldier/v2ray-rules-dat/issues/29 and https://github.com/Loyalsoldier/v2ray-rules-dat/issues/24 and https://github.com/Loyalsoldier/v2ray-rules-dat/issues/13 --- .github/workflows/build.yml | 5 +++++ README.md | 17 ++++++++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3ae3406..6cdba92 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -133,6 +133,11 @@ jobs: echo "include:direct-list.txt" >> cn echo "include:reject-list.txt" >> category-ads-all + - name: Add `google-cn` and `apple-cn` sub-lists for custom routing settings for third-party users due to accessibility in China mainland + run: | + curl -sSL $GOOGLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > $GOPATH/src/$GEOSITE_REPO/data/google-cn + curl -sSL $APPLE_DOMAINS_URL | perl -ne '/^server=\/([^\/]+)\// && print "$1\n"' > $GOPATH/src/$GEOSITE_REPO/data/apple-cn + - name: Build geosite.dat file run: | domain-list-community --datapath=${{ env.GOPATH }}/src/${{ env.GEOSITE_REPO }}/data diff --git a/README.md b/README.md index b8bb8a3..ab7080d 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,8 @@ - 通过仓库 [@v2ray/domain-list-community](https://github.com/v2ray/domain-list-community) 生成 - **加入大量中国大陆域名、Apple 域名和 Google 域名**: - [@felixonmars/dnsmasq-china-list/accelerated-domains.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/accelerated-domains.china.conf) 加入到 `geosite:cn` 类别中 - - [@felixonmars/dnsmasq-china-list/apple.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/apple.china.conf) 加入到 `geosite:geolocation-!cn` 类别中 - - [@felixonmars/dnsmasq-china-list/google.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/google.china.conf) 加入到 `geosite:geolocation-!cn` 类别中 + - [@felixonmars/dnsmasq-china-list/apple.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/apple.china.conf) 加入到 `geosite:geolocation-!cn` 类别中(如希望本文件中的 Apple 域名直连,请参考下面 [geosite 的 Routing 配置方式](https://github.com/Loyalsoldier/v2ray-rules-dat#geositedat-1)) + - [@felixonmars/dnsmasq-china-list/google.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/google.china.conf) 加入到 `geosite:geolocation-!cn` 类别中(如希望本文件中的 Google 域名直连,请参考下面 [geosite 的 Routing 配置方式](https://github.com/Loyalsoldier/v2ray-rules-dat#geositedat-1)) - **加入最新 GFWList 域名**:通过仓库 [@cokebar/gfwlist2dnsmasq](https://github.com/cokebar/gfwlist2dnsmasq) 生成并加入到 `geosite:geolocation-!cn` 类别中 - **加入附加 GFWList 域名**:通过仓库 [@pexcn/gfwlist-extras](https://github.com/pexcn/gfwlist-extras) 获取并加入到 `geosite:geolocation-!cn` 类别中 - **加入 Greatfire Analyzer 检测到的屏蔽域名**:通过仓库 [@wongsyrone/domain-block-list](https://github.com/wongsyrone/domain-block-list) 和 [@Loyalsoldier/cn-blocked-domain](https://github.com/Loyalsoldier/cn-blocked-domain) 获取 [Greatfire Analyzer](https://zh.greatfire.org/analyzer) 检测到的屏蔽域名,并加入到 `geosite:geolocation-!cn` 类别中 @@ -75,7 +75,7 @@ scoop install v2ray-rules-dat ### geosite.dat -跟 V2Ray 官方 `geosite.dat` 配置方式相同。 +跟 V2Ray 官方 `geosite.dat` 配置方式相同。`geosite:apple-cn` 和 `geosite:google-cn` 为本项目特有的两个类别,分别包含 [@felixonmars/dnsmasq-china-list/apple.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/apple.china.conf) 和 [@felixonmars/dnsmasq-china-list/google.china.conf](https://github.com/felixonmars/dnsmasq-china-list/blob/master/google.china.conf) 文件里的域名,供希望 Apple 和 Google 域名直连(不走代理)的用户使用,配置参考下面 👇👇👇 **Routing 配置方式**: @@ -89,6 +89,17 @@ scoop install v2ray-rules-dat "geosite:category-ads-all" ] }, + { + "type": "field", + "outboundTag": "Direct", + "domain": [ + "geosite:apple-cn", + "geosite:google-cn", + "geosite:jsdelivr", + "domain:icloud.com", + "domain:icloud-content.com" + ] + }, { "type": "field", "outboundTag": "Proxy", From 9c28f57ecaefcce1d22e15989f92f94492d64cc6 Mon Sep 17 00:00:00 2001 From: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Wed, 10 Jun 2020 15:18:42 +0800 Subject: [PATCH 4/5] Add more specific geoip routing configuration --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index ab7080d..4b4de61 100644 --- a/README.md +++ b/README.md @@ -65,9 +65,25 @@ scoop install v2ray-rules-dat "type": "field", "outboundTag": "Direct", "ip": [ + "223.5.5.5/32", + "119.29.29.29/32", + "180.76.76.76/32", + "114.114.114.114/32", "geoip:cn", "geoip:private" ] + }, + { + "type": "field", + "outboundTag": "Proxy", + "ip": [ + "1.1.1.1/32", + "1.0.0.1/32", + "8.8.8.8/32", + "8.8.4.4/32", + "geoip:us", + "geoip:ca" + ] } ] } From 373353ee078384155e0229ef867d3537191ce75c Mon Sep 17 00:00:00 2001 From: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Sat, 13 Jun 2020 10:13:54 +0800 Subject: [PATCH 5/5] Change geoip parameter due to https://github.com/Loyalsoldier/geoip/commit/e642fa60e41a50fd89383d64115174079b470908 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6cdba92..598eb62 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,7 +57,7 @@ jobs: - name: Generate geoip.dat file run: | go get -u -v -insecure $GEOIP_REPO - geoip --country=./geoip/GeoLite2-Country-Locations-en.csv --ipv4=./geoip/GeoLite2-Country-Blocks-IPv4.csv --ipv6=./geoip/GeoLite2-Country-Blocks-IPv6.csv --cnipv4url=https://raw.githubusercontent.com/pexcn/daily/gh-pages/chnroute/chnroute.txt + geoip --country=./geoip/GeoLite2-Country-Locations-en.csv --ipv4=./geoip/GeoLite2-Country-Blocks-IPv4.csv --ipv6=./geoip/GeoLite2-Country-Blocks-IPv6.csv --ipv4CN=https://raw.githubusercontent.com/pexcn/daily/gh-pages/chnroute/chnroute.txt - name: Download geosite project run: |