mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 07:26:24 -05:00
add TCP Keep Alive support in config
This commit is contained in:
parent
44272fa82f
commit
4cf9992f89
@ -12,6 +12,7 @@ type SocketConfig struct {
|
|||||||
TProxy string `json:"tproxy"`
|
TProxy string `json:"tproxy"`
|
||||||
AcceptProxyProtocol bool `json:"acceptProxyProtocol"`
|
AcceptProxyProtocol bool `json:"acceptProxyProtocol"`
|
||||||
TCPKeepAliveInterval int32 `json:"tcpKeepAliveInterval"`
|
TCPKeepAliveInterval int32 `json:"tcpKeepAliveInterval"`
|
||||||
|
TCPKeepAliveIdle int32 `json:"tcpKeepAliveIdle"`
|
||||||
TFOQueueLength uint32 `json:"tcpFastOpenQueueLength"`
|
TFOQueueLength uint32 `json:"tcpFastOpenQueueLength"`
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,5 +49,6 @@ func (c *SocketConfig) Build() (*internet.SocketConfig, error) {
|
|||||||
Tproxy: tproxy,
|
Tproxy: tproxy,
|
||||||
AcceptProxyProtocol: c.AcceptProxyProtocol,
|
AcceptProxyProtocol: c.AcceptProxyProtocol,
|
||||||
TcpKeepAliveInterval: c.TCPKeepAliveInterval,
|
TcpKeepAliveInterval: c.TCPKeepAliveInterval,
|
||||||
|
TcpKeepAliveIdle: c.TCPKeepAliveIdle,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user