From 8b91be34933084ecd6eb851292862ef0b5b8dfd6 Mon Sep 17 00:00:00 2001 From: Yuu <50163161+Yuu518@users.noreply.github.com> Date: Wed, 20 Nov 2024 08:13:22 +0800 Subject: [PATCH] Add Bilibili ip --- .github/workflows/build.yml | 5 +++++ config.json | 8 ++++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f371d9095c9..a74df674033 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,6 +59,11 @@ jobs: cp GeoLite2-Country-CSV_*/*.csv ./geolite2/ cp GeoLite2-ASN-CSV_*/*.csv ./geolite2/ + - name: Append more CIDRs + run: | + mkdir -p data + curl -sSL https://raw.githubusercontent.com/blackmatrix7/ios_rule_script/master/rule/Loon/BiliBili/BiliBili_Resolve.list | grep IP-CIDR, | sed 's/IP-CIDR,//g' > data/bilibili + - name: Build geoip files run: | go build ./ diff --git a/config.json b/config.json index ea9da2c9188..574121eb7af 100644 --- a/config.json +++ b/config.json @@ -24,6 +24,14 @@ "uri": "https://raw.githubusercontent.com/DH-Teams/DH-Geo_AS_IP_CN/main/Geo_AS_IP_CN_All.txt" } }, + { + "type": "text", + "action": "add", + "args": { + "name": "bilibili", + "uri": "./data/bilibili" + } + }, { "type": "text", "action": "add",