mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user