test and fix

Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle
2018-07-05 18:18:31 -04:00
parent f1360a2bf0
commit ae31e7f249
2 changed files with 22 additions and 2 deletions

View File

@@ -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 {