Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Toyo authored Nov 7, 2018
1 parent 33bf55d commit e8a1d68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gfw_push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ Read_config(){
POST_TG(){
Get_IP
if [[ -z "${NAME}" ]]; then
wget -qO- --post-data="text=\`[疑似被墙警告]\` — \[\`${IP}\`]&parse_mode=Markdown&disable_notification=false" "https://tgbot.lbyczf.com/sendMessage/${TOKEN}" &> /dev/null
wget -qO- --post-data="text=\`[疑似被墙警告]\` — \[\`${IP}\`]&parse_mode=Markdown&disable_notification=false" "https://tgbot.lbyczf.com/sendMessage/${TOKEN}" >> ${LOG_file}
else
wget -qO- --post-data="text=\`[疑似被墙警告]\` — \[${NAME}] (\`${IP}\`)&parse_mode=Markdown&disable_notification=false" "https://tgbot.lbyczf.com/sendMessage/${TOKEN}" &> /dev/null
wget -qO- --post-data="text=\`[疑似被墙警告]\` — \[${NAME}] (\`${IP}\`)&parse_mode=Markdown&disable_notification=false" "https://tgbot.lbyczf.com/sendMessage/${TOKEN}" >> ${LOG_file}
fi
#echo "" >> ${LOG_file}
echo "" >> ${LOG_file}
}
Get_IP(){
IP=$(wget -qO- -t1 -T2 ipinfo.io/ip)
Expand Down

0 comments on commit e8a1d68

Please sign in to comment.