mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-09-27 22:36:12 -04:00
add json parse rule for tcp keep alive interval
This commit is contained in:
parent
c564c84b17
commit
8d4b4201f8
@ -387,6 +387,8 @@ type SocketConfig struct {
|
|||||||
TFO *bool `json:"tcpFastOpen"`
|
TFO *bool `json:"tcpFastOpen"`
|
||||||
TProxy string `json:"tproxy"`
|
TProxy string `json:"tproxy"`
|
||||||
AcceptProxyProtocol bool `json:"acceptProxyProtocol"`
|
AcceptProxyProtocol bool `json:"acceptProxyProtocol"`
|
||||||
|
|
||||||
|
TcpKeepAliveInterval uint32 `json:"tcpKeepAliveInterval"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Build implements Buildable.
|
// Build implements Buildable.
|
||||||
@ -414,6 +416,7 @@ func (c *SocketConfig) Build() (*internet.SocketConfig, error) {
|
|||||||
Tfo: tfoSettings,
|
Tfo: tfoSettings,
|
||||||
Tproxy: tproxy,
|
Tproxy: tproxy,
|
||||||
AcceptProxyProtocol: c.AcceptProxyProtocol,
|
AcceptProxyProtocol: c.AcceptProxyProtocol,
|
||||||
|
TcpKeepAliveInterval: c.TcpKeepAliveInterval,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user