File tree Expand file tree Collapse file tree 2 files changed +2
-26
lines changed
Expand file tree Collapse file tree 2 files changed +2
-26
lines changed Original file line number Diff line number Diff line change 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 : |
Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments