From 11ac4e791e14af9196bd4f9c14873b2cfd62d215 Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Tue, 29 Mar 2022 00:02:22 +0800 Subject: [PATCH] update: new gfwlist filter script --- asset/gfwlist/build/source.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/asset/gfwlist/build/source.sh b/asset/gfwlist/build/source.sh index 8c835a5..42dac46 100644 --- a/asset/gfwlist/build/source.sh +++ b/asset/gfwlist/build/source.sh @@ -1,7 +1,4 @@ -curl -sL https://raw.githubusercontent.com/Loukky/gfwlist-by-loukky/master/gfwlist.txt | base64 -d | sort -u | sed '/^$\|@@/d'| sed 's#!.\+##; s#|##g; s#@##g; s#http:\/\/##; s#https:\/\/##;' | sed '/\*/d; /apple\.com/d; /sina\.cn/d; /sina\.com\.cn/d; /baidu\.com/d; /qq\.com/d' | sed '/^[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+$/d' | grep '^[0-9a-zA-Z\.-]\+$' | grep '\.' | sed 's#^\.\+##' | sort -u - -curl -sL https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt | base64 -d | sort -u | sed '/^$\|@@/d'| sed 's#!.\+##; s#|##g; s#@##g; s#http:\/\/##; s#https:\/\/##;' | sed '/\*/d; /apple\.com/d; /sina\.cn/d; /sina\.com\.cn/d; /baidu\.com/d; /qq\.com/d' | sed '/^[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+$/d' | grep '^[0-9a-zA-Z\.-]\+$' | grep '\.' | sed 's#^\.\+##' | sort -u - -curl -sL https://github.com/Loyalsoldier/v2ray-rules-dat/releases/download/$(curl -sL https://api.github.com/repos/Loyalsoldier/v2ray-rules-dat/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')/gfw.txt | sort -u - -curl -sL https://raw.githubusercontent.com/hq450/fancyss/master/rules/gfwlist.conf | sed 's/ipset=\/\.//g; s/\/gfwlist//g; /^server/d' | sort -u +curl -sL https://github.com/Loukky/gfwlist-by-loukky/raw/master/gfwlist.txt | base64 -d | sed '/^$\|@@/d' | sed 's#!.\+##;s#|##g;s#@##g;s#http:\/\/##;s#https:\/\/##;' | sed '/^[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+$/d' | grep '^[0-9a-zA-Z\.-]\+$' | grep '\.' | sed 's#^\.\+##' +curl -sL https://github.com/gfwlist/gfwlist/raw/master/gfwlist.txt | base64 -d | sed '/^$\|@@/d' | sed 's#!.\+##;s#|##g;s#@##g;s#http:\/\/##;s#https:\/\/##;' | sed '/^[0-9]\+\.[0-9]\+\.[0-9]\+\.[0-9]\+$/d' | grep '^[0-9a-zA-Z\.-]\+$' | grep '\.' | sed 's#^\.\+##' +curl -sL https://github.com/hq450/fancyss/raw/master/rules/gfwlist.conf | sed 's/ipset=\/\.//g;s/\/gfwlist//g;/^server/d' +curl -sL https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/gfw.txt