Skip to content

Commit

Permalink
Update multi.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
YG-tsj authored Jul 4, 2021
1 parent 3e0c104 commit 28d9ce5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions multi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ active)
esac


v44=`ping4 google.com -c 1 | grep received | awk 'NR==1 {print $4}'`
v44=`ping ipv4.google.com -c 1 | grep received | awk 'NR==1 {print $4}'`

if [[ ${v44} == "1" ]]; then
v4=`wget -qO- ipv4.ip.sb`
Expand All @@ -103,7 +103,7 @@ WARPIPv4Status=$(red "不存在IPV4地址 ")

fi

v66=`ping6 google.com -c 1 | grep received | awk 'NR==1 {print $4}'`
v66=`ping ipv6.google.com -c 1 | grep received | awk 'NR==1 {print $4}'`

if [[ ${v66} == "1" ]]; then
v6=`wget -qO- ipv6.ip.sb`
Expand Down

0 comments on commit 28d9ce5

Please sign in to comment.