Forráskód Böngészése

update release notes (#4086)

fatedier 10 hónapja
szülő
commit
c08be0fd92
3 módosított fájl, 5 hozzáadás és 3 törlés
  1. 2 0
      Release.md
  2. 1 1
      conf/frpc_full_example.toml
  3. 2 2
      pkg/config/v1/proxy.go

+ 2 - 0
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.

+ 1 - 1
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" }
 ]
 

+ 2 - 2
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"`
 }