From d6abddc7f5ef131546a762ae66de08cc9de14f2a Mon Sep 17 00:00:00 2001 From: Shelikhoo Date: Tue, 4 May 2021 22:55:39 +0100 Subject: [PATCH] rename the field to keep lint happy --- infra/conf/transport_internet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/conf/transport_internet.go b/infra/conf/transport_internet.go index 2c17c9500..1f699689b 100644 --- a/infra/conf/transport_internet.go +++ b/infra/conf/transport_internet.go @@ -390,7 +390,7 @@ type SocketConfig struct { TProxy string `json:"tproxy"` AcceptProxyProtocol bool `json:"acceptProxyProtocol"` - TcpKeepAliveInterval uint32 `json:"tcpKeepAliveInterval"` + TCPKeepAliveInterval uint32 `json:"tcpKeepAliveInterval"` } // Build implements Buildable. @@ -418,7 +418,7 @@ func (c *SocketConfig) Build() (*internet.SocketConfig, error) { Tfo: tfoSettings, Tproxy: tproxy, AcceptProxyProtocol: c.AcceptProxyProtocol, - TcpKeepAliveInterval: c.TcpKeepAliveInterval, + TcpKeepAliveInterval: c.TCPKeepAliveInterval, }, nil }