close #1
This commit is contained in:
parent
d2b4c1eba5
commit
2b97e1f19d
2 changed files with 4 additions and 0 deletions
|
@ -4,3 +4,4 @@ http6, 200, Google Website (IPv6), https://google.com
|
||||||
http, 404, Google 404, https://google.com/dummy
|
http, 404, Google 404, https://google.com/dummy
|
||||||
ping, 0, Google ping, 8.8.8.8
|
ping, 0, Google ping, 8.8.8.8
|
||||||
port, 0, Google DNS, 8.8.8.8 53
|
port, 0, Google DNS, 8.8.8.8 53
|
||||||
|
|
||||||
|
|
|
|
@ -25,6 +25,9 @@ check(){
|
||||||
host="${2}"
|
host="${2}"
|
||||||
name="${3}"
|
name="${3}"
|
||||||
expectedcode="${4}"
|
expectedcode="${4}"
|
||||||
|
if test -z ${ctype}
|
||||||
|
then return
|
||||||
|
fi
|
||||||
|
|
||||||
IPv="$(echo "${ctype}" | grep -o '[46]$')"
|
IPv="$(echo "${ctype}" | grep -o '[46]$')"
|
||||||
case "${ctype}" in
|
case "${ctype}" in
|
||||||
|
|
Loading…
Reference in a new issue