summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHandingkang <[email protected]>2023-07-11 21:43:49 +0800
committerHandingkang <[email protected]>2023-07-11 21:43:49 +0800
commitfb1dd1a504bc80794d588eade45d1f4caad3225a (patch)
treef4b7c5e4e9ea580ddb3842073718312387a41230
parent65fd06d2addf50c35c74c44ededf2a22f6ba7360 (diff)
1. prober结构改进,注意,未完成全部代码,存在大量错误
-rw-r--r--core/prober/prober.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/prober/prober.go b/core/prober/prober.go
index 7b97872..061dd8e 100644
--- a/core/prober/prober.go
+++ b/core/prober/prober.go
@@ -284,7 +284,7 @@ func (ps *ProbeServer) ServeHTTP(ctx context.Context, w http.ResponseWriter, req
)
for {
- if z, ok := ps.zones[q[off:]]; ok {
+ if z, ok := ps.zones[target[off:]]; ok {
for _, h := range z {
if h.pluginChain == nil { // zone defined, but has not got any plugins
errorAndMetricsFunc(ps.Addr, w, r, http.StatusNotImplemented)