This commit is contained in:
mckmonster 2022-09-10 17:26:40 +02:00
parent d2b4c1eba5
commit 2b97e1f19d
2 changed files with 4 additions and 0 deletions

View File

@ -4,3 +4,4 @@ http6, 200, Google Website (IPv6), https://google.com
http, 404, Google 404, https://google.com/dummy
ping, 0, Google ping, 8.8.8.8
port, 0, Google DNS, 8.8.8.8 53

1 http 200 Google Website https://google.com
4 http 404 Google 404 https://google.com/dummy
5 ping 0 Google ping 8.8.8.8
6 port 0 Google DNS 8.8.8.8 53
7

View File

@ -25,6 +25,9 @@ check(){
host="${2}"
name="${3}"
expectedcode="${4}"
if test -z ${ctype}
then return
fi
IPv="$(echo "${ctype}" | grep -o '[46]$')"
case "${ctype}" in