mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-20 00:07:06 -05:00
added use browser forwarding setting to the websocket config
This commit is contained in:
parent
3bc040e3ab
commit
6c1abd9c6a
@ -139,6 +139,8 @@ type WebSocketConfig struct {
|
|||||||
Path2 string `json:"Path"` // The key was misspelled. For backward compatibility, we have to keep track the old key.
|
Path2 string `json:"Path"` // The key was misspelled. For backward compatibility, we have to keep track the old key.
|
||||||
Headers map[string]string `json:"headers"`
|
Headers map[string]string `json:"headers"`
|
||||||
AcceptProxyProtocol bool `json:"acceptProxyProtocol"`
|
AcceptProxyProtocol bool `json:"acceptProxyProtocol"`
|
||||||
|
MaxEarlyData int32 `json:"maxEarlyData"`
|
||||||
|
UseBrowserForwarding bool `json:"useBrowserForwarding"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build implements Buildable.
|
// Build implements Buildable.
|
||||||
@ -157,6 +159,8 @@ func (c *WebSocketConfig) Build() (proto.Message, error) {
|
|||||||
config := &websocket.Config{
|
config := &websocket.Config{
|
||||||
Path: path,
|
Path: path,
|
||||||
Header: header,
|
Header: header,
|
||||||
|
MaxEarlyData: c.MaxEarlyData,
|
||||||
|
UseBrowserForwarding: c.UseBrowserForwarding,
|
||||||
}
|
}
|
||||||
if c.AcceptProxyProtocol {
|
if c.AcceptProxyProtocol {
|
||||||
config.AcceptProxyProtocol = c.AcceptProxyProtocol
|
config.AcceptProxyProtocol = c.AcceptProxyProtocol
|
||||||
|
Loading…
Reference in New Issue
Block a user