keksvpn/vendor/github.com/mdlayher/socket/netns_others.go

15 lines
304 B
Go
Raw Normal View History

2022-02-27 03:22:11 +00:00
//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)
}