diff --git a/speedtest/util_windows.go b/speedtest/util.go similarity index 53% rename from speedtest/util_windows.go rename to speedtest/util.go index c4a0cd0..ce04c00 100644 --- a/speedtest/util_windows.go +++ b/speedtest/util.go @@ -1,3 +1,6 @@ +//go:build !linux +// +build !linux + package speedtest import ( @@ -6,5 +9,5 @@ import ( ) func newDialerInterfaceBound(iface string) (dialer *net.Dialer, err error) { - return nil, fmt.Errorf("cannot bound to interface on Windows") + return nil, fmt.Errorf("cannot bound to interface on this platform") }