From 40a7847d7fa05f552509c901476ea9c7dcbdf115 Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Sat, 1 May 2021 15:49:42 +0100 Subject: [PATCH] update json configure for websocket header --- infra/conf/transport_internet.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go index 1a4157435..756264e0d 100644 --- a/infra/conf/transport_internet.go +++ b/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