Browse Source

update json configure for websocket header

Shelikhoo 4 years ago
parent
commit
40a7847d7f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      infra/conf/transport_internet.go

+ 2 - 0
infra/conf/transport_internet.go

@@ -142,6 +142,7 @@ type WebSocketConfig struct {
 	AcceptProxyProtocol  bool              `json:"acceptProxyProtocol"`
 	MaxEarlyData         int32             `json:"maxEarlyData"`
 	UseBrowserForwarding bool              `json:"useBrowserForwarding"`
+	EarlyDataHeaderName  string            `json:"earlyDataHeaderName"`
 }
 
 // Build implements Buildable.
@@ -162,6 +163,7 @@ func (c *WebSocketConfig) Build() (proto.Message, error) {
 		Header:               header,
 		MaxEarlyData:         c.MaxEarlyData,
 		UseBrowserForwarding: c.UseBrowserForwarding,
+		EarlyDataHeaderName:  c.EarlyDataHeaderName,
 	}
 	if c.AcceptProxyProtocol {
 		config.AcceptProxyProtocol = c.AcceptProxyProtocol