diff options
| author | Handingkang <[email protected]> | 2023-07-11 21:43:49 +0800 |
|---|---|---|
| committer | Handingkang <[email protected]> | 2023-07-11 21:43:49 +0800 |
| commit | fb1dd1a504bc80794d588eade45d1f4caad3225a (patch) | |
| tree | f4b7c5e4e9ea580ddb3842073718312387a41230 | |
| parent | 65fd06d2addf50c35c74c44ededf2a22f6ba7360 (diff) | |
1. prober结构改进,注意,未完成全部代码,存在大量错误
| -rw-r--r-- | core/prober/prober.go | 2 |
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) |
