mirror of
https://github.com/fatedier/frp.git
synced 2025-07-27 15:45:39 +00:00
frpc: support health check
This commit is contained in:
@@ -381,6 +381,8 @@ func (cfg *LocalSvrConf) checkForCli() (err error) {
|
||||
// Health check info
|
||||
type HealthCheckConf struct {
|
||||
HealthCheckType string `json:"health_check_type"` // tcp | http
|
||||
HealthCheckTimeout int `json:"health_check_timeout"`
|
||||
HealthCheckMaxFailed int `json:"health_check_max_failed"`
|
||||
HealthCheckIntervalS int `json:"health_check_interval_s"`
|
||||
HealthCheckUrl string `json:"health_check_url"`
|
||||
|
||||
|
Reference in New Issue
Block a user