Explorar el Código

rename the field to keep lint happy

Shelikhoo hace 4 años
padre
commit
d6abddc7f5
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      infra/conf/transport_internet.go

+ 2 - 2
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
 }