Files
KKRainbow 3d0c9c3ca5 chore(go): use lowercase module import path (#2560)
* chore(go): use lowercase module import path
* ci: scope checks for Go module changes
2026-09-10 15:13:55 +08:00

22 lines
475 B
Go

//go:build !aix && !android && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !windows
package netstd
import (
"fmt"
"runtime"
"github.com/easytier/easytier/easytier-go/platform"
)
func applyTCPSocketOptions(
_ uintptr,
_ string,
options platform.TCPBindOptions,
) error {
if options.ReuseAddr == nil && !options.ReusePort && !options.OnlyV6 {
return nil
}
return fmt.Errorf("TCP socket options are not supported on %s", runtime.GOOS)
}