Update default.inc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user