fix(monitor): keep supervision after empty scans
This commit is contained in:
1 parent
c19c4ffbd9
commit
b2a41270a9
8 files changed
+90
-22
No files matched your search
@@ -14,6 +14,8 @@ import (
|
||||
// Only complete, well-formed non-passing measurements permit scan fallback.
|
||||
var errCandidateNonpass = errors.New("saved scenario did not pass both TLS protocols")
|
||||
|
||||
const managedFrontendHost = "www.youtube.com"
|
||||
|
||||
// Rechecks exact saved args using runCombinedBlockcheckForHost's cacheCheck
|
||||
// contract. The caller supplies a fresh temporary artifact path; artifacts are
|
||||
// retained, but no stored definition or evidence is updated. A fresh GGC host
|
||||
@@ -39,7 +41,7 @@ func revalidateCandidate(ctx context.Context, c storedCandidate, group, host, pa
|
||||
} else {
|
||||
inScope := false
|
||||
for _, endpoint := range c.Endpoints {
|
||||
inScope = inScope || endpoint == host
|
||||
inScope = inScope || endpoint == host || strings.HasSuffix(host, "."+endpoint)
|
||||
}
|
||||
if !inScope {
|
||||
return nil, fmt.Errorf("frontend endpoint outside candidate scope")
|
||||
|
||||
Reference in new issue
Block a user