Adding a check to see if the service is detect before alerting

Signed-off-by: Amit Schendel <amitschendel@gmail.com>
This commit is contained in:
Amit Schendel
2024-01-29 16:28:05 +02:00
parent 97a5f33ef2
commit 79e7db3c43
+1 -1
View File
@@ -24,7 +24,7 @@ func isUnauthenticatedService(host string, port int, namespace string) bool {
return false
}
if !discoveryResults.IsAuthenticated {
if !discoveryResults.IsAuthenticated && discoveryResults.ApplicationLayer != "" {
return true
}