plugin/forward: configurable domain support for healthcheck (#5281)

* plugin/forward: configurable domain support for healthcheck

Signed-off-by: hansedong <admin@yinxiaoluo.com>
This commit is contained in:
hansedong 2022-04-13 00:39:48 +08:00 committed by GitHub
parent e60c179194
commit 0622a6c66c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 113 additions and 35 deletions

View file

@ -29,7 +29,7 @@ func NewProxy(addr, trans string) *Proxy {
probe: up.New(),
transport: newTransport(addr),
}
p.health = NewHealthChecker(trans, true)
p.health = NewHealthChecker(trans, true, ".")
runtime.SetFinalizer(p, (*Proxy).finalizer)
return p
}