From 9fff393178d0c4fb17ed69ed2bb18a1cc05ce92c Mon Sep 17 00:00:00 2001 From: lu4nx Date: Sun, 11 Jun 2023 12:19:06 +0800 Subject: [PATCH] Fix false positives for non-200 status codes. --- http/technologies/nacos-version.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/http/technologies/nacos-version.yaml b/http/technologies/nacos-version.yaml index 57967f7e0a..1138666e02 100644 --- a/http/technologies/nacos-version.yaml +++ b/http/technologies/nacos-version.yaml @@ -21,7 +21,12 @@ http: path: - "{{BaseURL}}/v1/console/server/state?accessToken=&username=" + matchers-condition: and matchers: + - type: status + status: + - 200 + - type: regex regex: - '"version":"(\d+\.\d+\.\d+)"'