mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
fix
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
parent
d57f4f0145
commit
3811f3219e
|
@ -147,8 +147,9 @@ func isKubernetesDashboard(ip string, port int) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
body := strings.ToLower(string(b))
|
body := strings.ToLower(string(b))
|
||||||
if (strings.Contains(body, "kubernetes") && strings.Contains(body, "pod")) ||
|
if (strings.Contains(body, "kubernetes") && strings.Contains(body, "dashboard")) ||
|
||||||
(strings.Contains(body, "versions") && strings.Contains(body, "serverAddress")) {
|
(strings.Contains(body, `"versions"`) && strings.Contains(body, `"serverAddress`)) ||
|
||||||
|
(strings.Contains(body, `"paths"`) && strings.Contains(body, `"/api"`)) {
|
||||||
logrus.Infof("uri: %s", uri)
|
logrus.Infof("uri: %s", uri)
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user