Update default.inc

This commit is contained in:
2024-02-10 15:33:03 -06:00
parent 4aa5320bc0
commit 34fdf4f655

View File

@@ -237,9 +237,8 @@ service_exists() {
}
CHECK_HOST(){
if [ ! -z ${1+x} ]; then
# if [ "$(nmap ${host} -p 22,80,443 -n | grep open)" != "" ] || [ "$(nmap -sU ${host} -p 161 -n | grep open)" != "" ]; then
ping -c 3 ${1} > /dev/null 2>&1
[ $? -ne 0 ] && echo false || echo true
else