From 5087f6d717fa22ce8d59b28054851d4a4fb745f7 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Sat, 9 May 2020 21:23:32 +0200 Subject: [PATCH] change port check for domain as well --- lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib.sh b/lib.sh index 7ce2b125..d8035844 100644 --- a/lib.sh +++ b/lib.sh @@ -543,7 +543,7 @@ if check_command curl -s -H 'Cache-Control: no-cache' "https://networkappers.com then print_text_in_color "$IGreen" "Port ${1} is open on ${WANIP4}!" # Domain name -elif check_command curl -s -H 'Cache-Control: no-cache' 'https://ports.yougetsignal.com/check-port.php' --data "remoteAddress=${2}&portNumber=${1}" | grep -q "is open on" +elif check_command curl -s -H 'Cache-Control: no-cache' "https://networkappers.com/api/port.php?ip=${2}&port=${1}" | grep -q "open" then print_text_in_color "$IGreen" "Port ${1} is open on ${2}!" else