You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
v2ray/config/hosts.sh

9 lines
336 B

#!/bin/bash
# 生成要屏蔽的域名... MVPS HOSTS....
curl "http://winhelp2002.mvps.org/hosts.txt" -o hosts.txt
sed -i '/^#/d; /localhost/d; /^$/d; s/0.0.0.0 //g; s/ //' hosts.txt
sed -i 's/#\(.*\)//g' hosts.txt
sed -i '/^\s*$/d' hosts.txt
sed -i 's/^/"/; s/\s*$/",/' hosts.txt
sed -i '$s/,//' hosts.txt