mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
add json parse rule for tcp keep alive interval
This commit is contained in:
@@ -387,6 +387,8 @@ type SocketConfig struct {
|
||||
TFO *bool `json:"tcpFastOpen"`
|
||||
TProxy string `json:"tproxy"`
|
||||
AcceptProxyProtocol bool `json:"acceptProxyProtocol"`
|
||||
|
||||
TcpKeepAliveInterval uint32 `json:"tcpKeepAliveInterval"`
|
||||
}
|
||||
|
||||
// Build implements Buildable.
|
||||
@@ -410,10 +412,11 @@ func (c *SocketConfig) Build() (*internet.SocketConfig, error) {
|
||||
}
|
||||
|
||||
return &internet.SocketConfig{
|
||||
Mark: c.Mark,
|
||||
Tfo: tfoSettings,
|
||||
Tproxy: tproxy,
|
||||
AcceptProxyProtocol: c.AcceptProxyProtocol,
|
||||
Mark: c.Mark,
|
||||
Tfo: tfoSettings,
|
||||
Tproxy: tproxy,
|
||||
AcceptProxyProtocol: c.AcceptProxyProtocol,
|
||||
TcpKeepAliveInterval: c.TcpKeepAliveInterval,
|
||||
}, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user