summaryrefslogtreecommitdiff
path: root/extendedstats/other.go
diff options
context:
space:
mode:
authorRich Brown <[email protected]>2022-06-05 08:22:42 -0400
committerGitHub <[email protected]>2022-06-05 08:22:42 -0400
commit5d7a55ebed54724233aa0b9b417643b9fc91a352 (patch)
tree26659fa5abd090ac83bb49e5cb8c2de4efc01853 /extendedstats/other.go
parentf97d4a8753d0df65704dcaf46dbc30de9d8898b7 (diff)
parentd06438ff7414abfcc5a2a1bd13a935ee594f0842 (diff)
Merge branch 'network-quality:main' into main
Diffstat (limited to 'extendedstats/other.go')
-rw-r--r--extendedstats/other.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/extendedstats/other.go b/extendedstats/other.go
new file mode 100644
index 0000000..c0f89ed
--- /dev/null
+++ b/extendedstats/other.go
@@ -0,0 +1,22 @@
+//go:build !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd
+// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd
+
+package extendedstats
+
+import (
+ "net"
+
+ "golang.org/x/sys/unix"
+)
+
+type ExtendedStats struct{}
+
+func (es *ExtendedStats) IncorporateConnectionStats(conn net.Conn) {}
+
+func (es *ExtendedStats) Repr() string {
+ return ""
+}
+
+func ExtendedStatsAvailable() bool {
+ return false
+}