diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go index 99a908aa4..46832a534 100644 --- a/infra/conf/transport_internet.go +++ b/infra/conf/transport_internet.go @@ -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 }