Skip to content

Commit

Permalink
# 强制IPv4访问+更换联通域名
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyo authored Nov 1, 2018
1 parent a9d7382 commit 8955202
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gfw_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ export PATH
#=================================================
# System Required: CentOS/Debian/Ubuntu
# Description: 监测IP是否被墙并推送消息至Telegram
# Version: 1.0.3
# Version: 1.0.4
# Author: Toyo
# Blog: https://doub.io/shell-jc8/
#=================================================

sh_ver="1.0.3"
sh_ver="1.0.4"
filepath=$(cd "$(dirname "$0")"; pwd)
file_1=$(echo -e "${filepath}"|awk -F "$0" '{print $1}')
Crontab_file="/usr/bin/crontab"
CONF="${file_1}/gfw_push.conf"
LOG_file="${file_1}/gfw_push.log"
Test_link="www.189.cn
www.10010.cn
biz.10010.com
www.10086.cn"
Test_UA="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36
Expand Down Expand Up @@ -233,7 +233,7 @@ Test(){
UA_num=$(rand 1 12)
UA=$(echo "${Test_UA}"|sed -n "${UA_num}p")
now_URL=$(echo "${Test_link}"|sed -n "${integer}p")
wget --spider -nv -t2 -T5 -U "${UA}" "${now_URL}" -o "http_code.tmp"
wget --spider -nv -t2 -T5 -4 -U "${UA}" "${now_URL}" -o "http_code.tmp"
#wget --spider -nv -t2 -T5 -U "${UA}" "${now_URL}" &> /dev/null
return_code=$(echo $?)
#cat "http_code.tmp"
Expand Down

0 comments on commit 8955202

Please sign in to comment.