diff --git a/pkg/interfaces/tcp.go b/pkg/interfaces/tcp.go index 015c8e9..5ac9ff8 100644 --- a/pkg/interfaces/tcp.go +++ b/pkg/interfaces/tcp.go @@ -384,7 +384,7 @@ func (tc *TCPClientInterface) GetRTT() time.Duration { } if tcpConn, ok := tc.conn.(*net.TCPConn); ok { - var rtt time.Duration = 0 + var rtt time.Duration if runtime.GOOS == "linux" { if info, err := tcpConn.SyscallConn(); err == nil { if err := info.Control(func(fd uintptr) { // #nosec G104