From c08be0fd926f46f1f5fd9b2105b9ba3753522548 Mon Sep 17 00:00:00 2001 From: fatedier Date: Wed, 20 Mar 2024 15:16:01 +0800 Subject: [PATCH] update release notes (#4086) --- Release.md | 2 ++ conf/frpc_full_example.toml | 2 +- pkg/config/v1/proxy.go | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Release.md b/Release.md index f106d802..ca58a04d 100644 --- a/Release.md +++ b/Release.md @@ -16,6 +16,8 @@ This will create 8 proxies such as `tcp-6000, tcp-6001, ... tcp-6007`. +* Health check supports custom request headers. + ### Fixes * Fix the issue of incorrect interval time for rotating the log by day. diff --git a/conf/frpc_full_example.toml b/conf/frpc_full_example.toml index 4dae6b3c..0528ddea 100644 --- a/conf/frpc_full_example.toml +++ b/conf/frpc_full_example.toml @@ -217,7 +217,7 @@ healthCheck.intervalSeconds = 10 healthCheck.maxFailed = 3 healthCheck.timeoutSeconds = 3 # set health check headers -healthCheck.httpheaders=[ +healthCheck.httpHeaders=[ { name = "x-from-where", value = "frp" } ] diff --git a/pkg/config/v1/proxy.go b/pkg/config/v1/proxy.go index 9d91b585..1949cfd3 100644 --- a/pkg/config/v1/proxy.go +++ b/pkg/config/v1/proxy.go @@ -97,8 +97,8 @@ type HealthCheckConfig struct { // Path specifies the path to send health checks to if the // health check type is "http". Path string `json:"path,omitempty"` - // Headers specifies the headers to send health checks to if the - // health check type is "http". + // HTTPHeaders specifies the headers to send with the health request, if + // the health check type is "http". HTTPHeaders []HTTPHeader `json:"httpHeaders,omitempty"` }