Changes UA regex for Kube probe detection

Trying to stop Kubernetes' regular health check probes from loading
an actual raw text request.
This commit is contained in:
Thomas Buckley-Houston 2018-07-25 02:30:32 +08:00
parent 4ae545d514
commit 4bf2f67410

View file

@ -178,7 +178,7 @@ func isDisallowedUserAgent(userAgent string) bool {
}
func isKubeReadinessProbe(userAgent string) bool {
r, _ := regexp.Compile("kube-probe")
r, _ := regexp.Compile("GoogleHC")
if r.MatchString(userAgent) {
return true
}