Skip to content

Commit 5ec2fc1

Browse files
committed
source: use combined cn geoip
1 parent bb62ae2 commit 5ec2fc1

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,9 @@ jobs:
3636
- name: Fetch external data
3737
run: ./external.sh
3838

39-
- name: Get GeoLite2
40-
run: |
41-
curl -L "https://github.com/Loyalsoldier/geoip/raw/release/GeoLite2-Country-CSV.zip" -o GeoLite2-Country-CSV.zip
42-
unzip GeoLite2-Country-CSV.zip
43-
rm -f GeoLite2-Country-CSV.zip
44-
mv GeoLite2* geolite2
45-
4639
- name: Build Country.mmdb file
4740
run: |
48-
go run ./
41+
go run .
4942
5043
- name: Generate sha256 checksum for mmdb files
5144
run: |

config.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
11
{
22
"input": [
3-
{
4-
"type": "maxmindGeoLite2CountryCSV",
5-
"action": "add",
6-
"args": {
7-
"country": "./geolite2/GeoLite2-Country-Locations-en.csv",
8-
"ipv4": "./geolite2/GeoLite2-Country-Blocks-IPv4.csv",
9-
"ipv6": "./geolite2/GeoLite2-Country-Blocks-IPv6.csv"
10-
}
11-
},
12-
{
13-
"type": "cutter",
14-
"action": "remove",
15-
"args": {
16-
"wantedList": ["cn"],
17-
"onlyIPType": "ipv4"
18-
}
19-
},
203
{
214
"type": "text",
225
"action": "add",
236
"args": {
247
"name": "cn",
25-
"uri": "https://raw.githubusercontent.com/17mon/china_ip_list/master/china_ip_list.txt",
8+
"uri": "https://raw.githubusercontent.com/Hackl0us/GeoIP2-CN/release/CN-ip-cidr.txt",
269
"onlyIPType": "ipv4"
2710
}
2811
},

0 commit comments

Comments
 (0)