Skip to content

Commit d33e431

Browse files
committed
fix build for non-windows/linux platforms
1 parent d23c1b7 commit d33e431

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//go:build !linux
2+
// +build !linux
3+
14
package speedtest
25

36
import (
@@ -6,5 +9,5 @@ import (
69
)
710

811
func newDialerInterfaceBound(iface string) (dialer *net.Dialer, err error) {
9-
return nil, fmt.Errorf("cannot bound to interface on Windows")
12+
return nil, fmt.Errorf("cannot bound to interface on this platform")
1013
}

0 commit comments

Comments
 (0)