From 8a66c0ad439a6a5d2ae886b28ec841b3663df226 Mon Sep 17 00:00:00 2001 From: Randall Meyer Date: Sun, 16 Oct 2022 15:20:32 -0700 Subject: extendedstats: fix build error on other platform Also, simplify code for darwin's TCPInfo --- extendedstats/other.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extendedstats/other.go') diff --git a/extendedstats/other.go b/extendedstats/other.go index 2d76eaf..ed6d925 100644 --- a/extendedstats/other.go +++ b/extendedstats/other.go @@ -36,6 +36,6 @@ func ExtendedStatsAvailable() bool { return false } -func GetTCPInfo(basicConn net.Conn) (interface, error) { +func GetTCPInfo(basicConn net.Conn) (interface{}, error) { return nil, fmt.Errorf("GetTCPInfo is not supported on this platform") } -- cgit v1.2.3