netbird/sharedsock/sock_nolinux.go
2023-05-05 10:55:23 +02:00

15 lines
316 B
Go

//go:build !linux || android
package sharedsock
import (
"fmt"
"net"
"runtime"
)
// Listen is not supported on other platforms
func Listen(port int, filter BPFFilter) (net.PacketConn, error) {
return nil, fmt.Errorf(fmt.Sprintf("Not supported OS %s. SharedSocket is only supported on Linux", runtime.GOOS))
}