Skip to content

Commit

Permalink
fix build for non-windows/linux platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
maddie committed Sep 10, 2024
1 parent d23c1b7 commit d33e431
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion speedtest/util_windows.go → speedtest/util.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//go:build !linux
// +build !linux

package speedtest

import (
Expand All @@ -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")
}

0 comments on commit d33e431

Please # to comment.