mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2025-12-10 06:52:40 +01:00
@@ -143,7 +143,7 @@ func isKubernetesDashboard(ip string, port int) bool {
|
||||
}
|
||||
|
||||
body := strings.ToLower(string(b))
|
||||
if strings.Contains(body, "kubernetes") ||
|
||||
if (strings.Contains(body, "kubernetes") && strings.Contains(body, "pod")) ||
|
||||
(strings.Contains(body, "versions") && strings.Contains(body, "serverAddress")) {
|
||||
logrus.Infof("uri: %s", uri)
|
||||
return true
|
||||
@@ -157,7 +157,7 @@ type ARINResponse struct {
|
||||
}
|
||||
|
||||
type NetJSON struct {
|
||||
Organization OrganizationJSON `json:"orgReg,omitempty"`
|
||||
Organization OrganizationJSON `json:"orgRef,omitempty"`
|
||||
}
|
||||
|
||||
type OrganizationJSON struct {
|
||||
|
||||
Reference in New Issue
Block a user