Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle 2018-07-06 10:10:20 -04:00
parent d57f4f0145
commit 3811f3219e
No known key found for this signature in database
GPG Key ID: C0B444E6A3EFD4C1

View File

@ -147,8 +147,9 @@ func isKubernetesDashboard(ip string, port int) bool {
}
body := strings.ToLower(string(b))
if (strings.Contains(body, "kubernetes") && strings.Contains(body, "pod")) ||
(strings.Contains(body, "versions") && strings.Contains(body, "serverAddress")) {
if (strings.Contains(body, "kubernetes") && strings.Contains(body, "dashboard")) ||
(strings.Contains(body, `"versions"`) && strings.Contains(body, `"serverAddress`)) ||
(strings.Contains(body, `"paths"`) && strings.Contains(body, `"/api"`)) {
logrus.Infof("uri: %s", uri)
return true
}