keksvpn/vendor/github.com/mdlayher/socket/netns_others.go
2022-02-27 04:22:11 +01:00

14 lines
304 B
Go

//go:build !linux
// +build !linux
package socket
import (
"fmt"
"runtime"
)
// withNetNS returns an error on non-Linux systems.
func withNetNS(_ int, _ func() (*Conn, error)) (*Conn, error) {
return nil, fmt.Errorf("socket: Linux network namespace support is not available on %s", runtime.GOOS)
}