mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-10-09 03:46:14 -08:00
* chore(go): use lowercase module import path * ci: scope checks for Go module changes
22 lines
475 B
Go
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)
|
|
}
|