fixed incorrect healthcheck result in some cases, healthchecker now send user agent identifying godoxy

This commit is contained in:
yusing
2024-11-11 06:37:05 +08:00
parent ae69019265
commit 64728d10ad
2 changed files with 17 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ func newWaker(providerSubTask task.Task, entry entry.Entry, rp *gphttp.ReversePr
switch {
case rp != nil:
waker.hc = health.NewHTTPHealthChecker(entry.TargetURL(), hcCfg, rp.Transport)
waker.hc = health.NewHTTPHealthChecker(entry.TargetURL(), hcCfg)
case stream != nil:
waker.hc = health.NewRawHealthChecker(entry.TargetURL(), hcCfg)
default: